Synchronizing Attributes


Initialization

int pthread_mutexattr_init(pthread_mutexattr_t * attr);

int pthread_mutexattr_destroy(pthread_mutexattr_t * attr);

int pthread_condattr_init(pthread_condattr_t * attr);

int pthread_condattr_destroy(pthread_condattr_t * attr);


Process Shared

int pthread_mutexattr_getpshared(pthread_mutexattr_t * attr, int * state);

int pthread_mutexattr_setpshared(pthread_mutexattr_t * attr, int state);
int pthread_condattr_getpshared(pthread_condattr_t * attr, int * state);

int pthread_condattr_setpshared(pthread_condattr_t * attr, int state);


Mutex Types

These are non POSIX extensions...
int pthread_mutexattr_gettype(pthread_mutexattr_t * attr, int * type);

int pthread_mutexattr_settype(pthread_mutexattr_t * attr, int type);

PTHREAD_MUTEXTYPE_RECURSIVE, PTHREAD_MUTEXTYPE_DEBUG
int pthread_condattr_gettype(pthread_condattr_t * attr, int * type);

int pthread_condattr_settype(pthread_condattr_t * attr, int type);
PTHREAD_CONDTYPE_RECURSIVE


[TOP] [BACK] [FORWARD]


Prepared by Chris Provenzano (proven@mit.edu)