Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

872 Function Prototypes Appendix A


void *pthread_getspecific(pthread_key_tkey);
<pthread.h> p. 449
Returns: thread-specific data value orNULLif no value has
been associated with the key

int pthread_join(pthread_tthread,void **rval_ptr);
<pthread.h> p. 389
Returns: 0 if OK, error number on failure

int pthread_key_create(pthread_key_t *keyp,
void (*destructor)(void *));
<pthread.h> p. 447
Returns: 0 if OK, error number on failure

int pthread_key_delete(pthread_key_tkey);
<pthread.h> p. 448
Returns: 0 if OK, error number on failure

int pthread_kill(pthread_tthread,intsigno);
<signal.h> p. 455
Returns: 0 if OK, error number on failure

int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
<pthread.h> p. 431
Returns: 0 if OK, error number on failure

int pthread_mutexattr_getpshared(const pthread_mutexattr_t
*restrictattr,
int *restrictpshared);
<pthread.h> p. 431
Returns: 0 if OK, error number on failure

int pthread_mutexattr_getrobust(const pthread_mutexattr_t
*restrictattr,
int *restrictrobust);
<pthread.h> p. 432
Returns: 0 if OK, error number on failure

int pthread_mutexattr_gettype(const pthread_mutexattr_t
*restrictattr,
int *restrict type);
<pthread.h> p. 434
Returns: 0 if OK, error number on failure

int pthread_mutexattr_init(pthread_mutexattr_t *attr);
<pthread.h> p. 431
Returns: 0 if OK, error number on failure
Free download pdf