ptg10805159
Appendix A Function Prototypes 873
int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
intpshared);
<pthread.h> p. 431
pshared:PTHREAD_PROCESS_PRIVATE,
PTHREAD_PROCESS_SHARED
Returns: 0 if OK, error number on failure
int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr,
introbust);
<pthread.h> p. 432
robust:PTHREAD_MUTEX_ROBUST,
PTHREAD_MUTEX_STALLED
Returns: 0 if OK, error number on failure
int pthread_mutexattr_settype(pthread_mutexattr_t *attr,inttype);
<pthread.h> p. 434
type:PTHREAD_MUTEX_NORMAL,
PTHREAD_MUTEX_ERRORCHECK,
PTHREAD_MUTEX_RECURSIVE,
PTHREAD_MUTEX_DEFAULT
Returns: 0 if OK, error number on failure
int pthread_mutex_consistent(pthread_mutex_t *mutex);
<pthread.h> p. 433
Returns: 0 if OK, error number on failure
int pthread_mutex_destroy(pthread_mutex_t *mutex);
<pthread.h> p. 400
Returns: 0 if OK, error number on failure
int pthread_mutex_init(pthread_mutex_t *restrictmutex,
const pthread_mutexattr_t *restrictattr);
<pthread.h> p. 400
Returns: 0 if OK, error number on failure
int pthread_mutex_lock(pthread_mutex_t *mutex);
<pthread.h> p. 400
Returns: 0 if OK, error number on failure
int pthread_mutex_timedlock(pthread_mutex_t *restrictmutex,
const struct timespec *restricttsptr);
<pthread.h> p. 407
<time.h>
Returns: 0 if OK, error number on failure
int pthread_mutex_trylock(pthread_mutex_t *mutex);
<pthread.h> p. 400
Returns: 0 if OK, error number on failure