Man Page: pthread_unlock_global_np
Operating Environment: osf1
Section: 3
pthread_unlock_global_np(3) Library Functions Manual pthread_unlock_global_np(3)NAMEpthread_unlock_global_np - Unlocks the DECthreads global mutex.LIBRARYDECthreads POSIX 1003.1c Library (libpthread.so)SYNOPSIS#include <pthread.h> int pthread_unlock_global_np(void);STANDARDSNonePARAMETERSNoneDESCRIPTIONThis routine unlocks the DECthreads global mutex. Because the global mutex is recursive, the unlock occurs when each call to pthread_lock_global_np(3) has been matched by a call to this routine. For example, if you called pthread_lock_global_np(3) three times, pthread_unlock_global_np(3) unlocks the global mutex when you call it the third time. If no threads are waiting for the DECthreads global mutex, it becomes unlocked with no current owner. If one or more threads are waiting to lock the global mutex, this routine causes one thread to unblock and try to acquire the global mutex. The scheduling policy is used to determine which thread is awakened. For the policies SCHED_FIFO and SCHED_RR, a blocked thread is chosen in priority order, using first- in/first-out (FIFO) within priorities.RETURN VALUESIf an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The mutex is unlocked or owned by another thread.ERRORSNoneRELATED INFORMATIONFunctions: pthread_lock_global_np(3) Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_unlock_global_np(3)
| Related Man Pages |
|---|
| pthread_mutex_unlock(3) - osf1 |
| pthread_mutex_lock(3) - osf1 |
| pthread_mutex_setname_np(3) - osf1 |
| tis_mutex_lock(3) - osf1 |
| tis_mutex_unlock(3) - osf1 |
| Similar Topics in the Unix Linux Community |
|---|
| Number of threads waiting on a pthread mutex/rwlock |
| design query: where to lock mutex for function accessing global value? |
| pthread locking and unlocking. |
| GTK bug? xcb_io.c: 140 |