Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

Appendix A Function Prototypes 871


int pthread_cond_broadcast(pthread_cond_t *cond);
<pthread.h> p. 415
Returns: 0 if OK, error number on failure

int pthread_cond_destroy(pthread_cond_t *cond);
<pthread.h> p. 414
Returns: 0 if OK, error number on failure

int pthread_cond_init(pthread_cond_t *restrictcond,
const pthread_condattr_t *restrictattr);
<pthread.h> p. 414
Returns: 0 if OK, error number on failure

int pthread_cond_signal(pthread_cond_t *cond);
<pthread.h> p. 415
Returns: 0 if OK, error number on failure

int pthread_cond_timedwait(pthread_cond_t *restrictcond,
pthread_mutex_t *restrictmutex,
const struct timespec
*restricttimeout);
<pthread.h> p. 414
Returns: 0 if OK, error number on failure

int pthread_cond_wait(pthread_cond_t *restrictcond,
pthread_mutex_t *restrictmutex);
<pthread.h> p. 414
Returns: 0 if OK, error number on failure

int pthread_create(pthread_t *restricttidp,
const pthread_attr_t *restrictattr,
void *(*start_rtn)(void *),
void *restrictarg);
<pthread.h> p. 385
Returns: 0 if OK, error number on failure

int pthread_detach(pthread_ttid);
<pthread.h> p. 397
Returns: 0 if OK, error number on failure

int pthread_equal(pthread_ttid1,pthread_ttid2);
<pthread.h> p. 385
Returns: nonzero if equal, 0 otherwise

void pthread_exit(void *rval_ptr);
<pthread.h> p. 389
Free download pdf