pthread_unlock_global_np(3-thr) pthread_unlock_global_np(3-thr)
NAME
pthreadunlockglobalnp - unlocks a global mutex
SYNOPSIS
#include <pthread.h>
void pthreadunlockglobalnp();
DESCRIPTION
The pthreadunlockglobalnp() routine unlocks the global mutex when
each call to pthreadlockglobalnp() is matched by a call to this
routine. For example, if you called pthreadlockglobalnp() three
times, pthreadunlockglobalnp() 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 pthreadlockglobalnp(). The scheduling policy is used to
determine which thread acquires the global mutex. For the policies
SCHEDFIFO and SCHEDRR, 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 a new primitive.
RETURN VALUES
No value is returned.
SEE ALSO
pthreadlockglobalnp(3-thr), pthreadmutexlock(3-thr),
pthreadmutexunlock(3-thr), pthreadmutexattrsetkindnp(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98