Query: pthread_mutexattr_settype
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_mutexattr_settype(3) Library Functions Manual pthread_mutexattr_settype(3)NAMEpthread_mutexattr_settype - Specifies the mutex type attribute that is used when a mutex is created.LIBRARYDECthreads POSIX 1003.1c Library (libpthread.so)SYNOPSIS#include <pthread.h> int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: IEEE Std 1003.1c-1995, POSIX System Application Program InterfacePARAMETERSMutex attributes object whose mutex type attribute is to be modified. New value for the mutex type attribute. The type argument specifies the type of mutex that will be created. Valid values are: PTHREAD_MUTEX_NORMAL PTHREAD_MUTEX_DEFAULT (default) PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_ERRORCHECKDESCRIPTIONThis routine sets the mutex type attribute that is used to determine which type of mutex is created based on a subsequent call to pthread_mutex_init(3).RETURN VALUESIf an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The value specified for attr or type is invalid. The value specified by attr does not refer to an existing mutex attributes object.ERRORSNoneRELATED INFORMATIONFunctions: pthread_mutexattr_init(3), pthread_mutexattr_gettype(3), pthread_mutex_init(3) Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_mutexattr_settype(3)
Related Man Pages |
---|
pthread_mutexattr_gettype(3c) - opensolaris |
pthread_mutex_destroy(3) - osf1 |
pthread_mutex_init(3) - osf1 |
pthread_mutex_unlock(3) - osf1 |
pthread_mutexattr_settype(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Mutex will not work |