RTEMS CPU Kit with SuperCore
4.11.3
|
Initialize a Mutex. More...
#include <errno.h>
#include <pthread.h>
#include <rtems/system.h>
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
Functions | |
int | pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) |
11.3.2 Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. More... | |
Initialize a Mutex.
int pthread_mutex_init | ( | pthread_mutex_t * | mutex, |
const pthread_mutexattr_t * | attr | ||
) |
11.3.2 Initializing and Destroying a Mutex, P1003.1c/Draft 10, p.
87
NOTE: XXX Could be optimized so all the attribute error checking is not performed when attr is NULL.
References _POSIX_Mutex_Default_attributes, and _POSIX_Mutex_Get().