DCE for the HP e3000 (B3821-90002)
Programming with Kernel Threads
PTHREAD Intrinsics
Chapter 5
72
pthread_mutex_trylock (mutex) /* returns 0 if owned */
pthread_mutex_t *mutex /* by current thread */
/* (ver 5) versus */
/* -1 (ver 3) */
int
pthread_mutex_unlock (mutex)
pthread_mutex_t *mutex;
int
pthread_cancel (thread)
pthread_thread_t thread;
int
pthread_setasynccancel (state) /* May only set async */
/* cancel off!! */
int state; /* Async Cancels not */
/* supported. */
int
pthread_setcancel (state)
int state;
void
pthread_testcancel ()
int
pthread_keycreate (key, destructor) /* version 5 syntax.*/
pthread_key_t *key; /* The destructor is*/
void (*destructor) () /* now called when */
/* thread exits! */
int
pthread_getspecific (key, value) /* version 4 semantics */
pthread_key_t key;
void **value;
int
pthread_setspecific (key, value) /* version 4 semantics */
pthread_key_t key;
void *value;
int
pthread_once (once_block, init_routine)
pthread_once_t *once_block;
void (*init_routine)();
pthread_thread_t