NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libpthreads.a #include <pthread.h>int pthread_mutexattr_init(pthread_mutexattr_t * attr);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
No mutex attributes are currently supported.
The pthread_mutexattr_init() function initializes the mutex attribute object referenced by attr with the default values for all mutex attributes. When subsequently used by pthread_mutex_init() , it specifies attributes for the mutex being initialized. Modification to an attribute object has no effect on mutexes already initialized from that object.
The pthread_mutexattr_destroy() function deletes a mutex attribute object.
The pthread_mutexattr_init() and pthread_mutexattr_destroy() functions always return zero.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO