pthread.3t (2010 09)
p
pthread(3T) pthread(3T)
(Pthread Library)
Condition Variables are used by a thread to wait for the occurrence of some event. A thread detecting or
causing such an event can signal or broadcast that occurrence to the waiting thread or threads.
Read-Write locks permit concurrent read access by multiple threads to structures guarded by a read-write
lock, but write access by only a single thread.
pthread_mutex_init()
,
pthread_mutex_destroy()
Initialize/destroy contents of a mutex lock.
pthread_mutex_lock()
,
pthread_mutex_trylock()
,
pthread_mutex_unlock()
Lock/unlock a mutex.
pthread_mutex_getprioceiling()
,
pthread_mutex_setprioceiling()
Manipulate mutex locking priorities.
pthread_mutexattr_init()
,
pthread_mutexattr_destroy()
,
pthread_mutexattr_getprioceiling()
,
pthread_mutexattr_getprotocol()
,
pthread_mutexattr_getpshared()
,
pthread_mutexattr_gettype()
,
pthread_mutexattr_getspin_np()
,
pthread_mutexattr_setprioceiling()
,
pthread_mutexattr_setprotocol()
,
pthread_mutexattr_setpshared()
,
pthread_mutexattr_settype()
,
pthread_mutexattr_setspin_np()
Manage mutex attributes used for pthread_mutex_init()
. Only the "prioceiling" attribute can
be changed for an exiting mutex.
pthread_mutex_getyieldfreq_np()
,
pthread_mutex_setyieldfreq_np()
These functions, together with the spin attributes, are used to tune mutex performance to the
specific application.
pthread_cond_init()
,
pthread_cond_destroy()
Initialize/destroy contents of a read-write lock.
pthread_cond_signal(),
pthread_cond_broadcast(),
pthread_cond_timedwait(),
pthread_cond_wait()
Wait upon or signal occurrence of a condition variable.
pthread_condattr_init(),
pthread_condattr_destroy(),
pthread_condattr_getpshared(),
pthread_condattr_setpshared()
Manage condition variable attributes used for pthread_cond_init().
pthread_rwlock_init(),
pthread_rwlock_destroy()
Initialize/destroy contents of a read-write lock.
pthread_rwlock_rdlock(),
pthread_rwlock_tryrdlock(),
pthread_rwlock_wrlock(),
pthread_rwlock_trywrlock(),
pthread_rwlock_unlock()
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010