RTEMS 4.9.0 On-Line Library
Mutex Manager pthread_mutex_init - Initialize a Mutex
RTEMS POSIX API User's Guide
10.4.9: pthread_mutex_init - Initialize a Mutex
CALLING SEQUENCE:
-
#include <pthread.h>
int pthread_mutex_init(
pthread_mutex_t *mutex,
const pthread_mutexattr_t *attr
);
STATUS CODES:
- EINVAL
-
The attribute set is not initialized.
- EINVAL
-
The specified protocol is invalid.
- EAGAIN
-
The system lacked the necessary resources to initialize another mutex.
- ENOMEM
-
Insufficient memory exists to initialize the mutex.
- EBUSY
-
Attempted to reinialize the object reference by mutex, a previously
initialized, but not yet destroyed.
DESCRIPTION:
NOTES:
RTEMS POSIX API User's Guide
Copyright © 1988-2008 OAR Corporation