#include <pthread.h>
|
int
pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); |
pthread_mutexattr_t mta; int rc; /* Initialize a mutex attributes object */ if((rc=pthread_mutexattr_init(&mta)) != 0) { fprintf(stderr,"Error at pthread_mutexattr_init(), rc=%d\n",rc); return -1; }
[EINVAL] | |
The value specified by attr is invalid. | |
[ENOMEM] | |
The process cannot allocate enough memory to create another mutex. | |
The pthread_mutex_init function conforms to -p1003.1-96.
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |