VMS Help DCE_THREADS, Application Routines, pthread_unlock_global_np *Conan The Librarian (sorry for the slow response - running on an old VAX) |
NAME pthread_unlock_global_np - Unlocks a global mutex SYNOPSIS #include <pthread.h> void pthread_unlock_global_np(); DESCRIPTION The pthread_unlock_global_np() routine unlocks the global mutex when each call to pthread_lock_global_np() is matched by a call to this rou- tine. For example, if you called pthread_lock_global_np() three times, pthread_unlock_global_np() unlocks the global mutex when you call it the third time. If no threads are waiting for the global mutex, it becomes unlocked with no current owner. If one or more threads are waiting to lock the global mutex, one thread returns from its call to pthread_lock_global_np(). The scheduling policy is used to determine which thread acquires the global mutex. For the policies SCHED_FIFO and SCHED_RR, a blocked thread is chosen in priority order. The results of calling this routine are unpredictable if the global mutex is already unlocked. The results of calling this routine are also unpredictable if the global mutex is owned by a thread other than the calling thread. This routine is not portable. RETURN VALUES No value is returned. RELATED INFORMATION FUNCTIONS: pthread_lock_global_np pthread_mutexattr_setkind_np pthread_mutex_lock pthread_mutex_unlock
|