*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> pthread_unlock_global_np (3)              
Title
Content
Arch
Section
 

pthread_unlock_global_np(3)

Contents


NAME    [Toc]    [Back]

       pthread_unlock_global_np  -  Unlocks the DECthreads global
       mutex

SYNOPSIS    [Toc]    [Back]

       #include <pthread.h>

       int pthread_unlock_global_np(
               void );

LIBRARY    [Toc]    [Back]

       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS    [Toc]    [Back]

       None

PARAMETERS    [Toc]    [Back]

       None

DESCRIPTION    [Toc]    [Back]

       This 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 VALUES    [Toc]    [Back]

       If  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.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Functions: pthread_lock_global_np(3)

       Manuals: Guide to DECthreads and Programmer's Guide



                                      pthread_unlock_global_np(3)
[ Back ]
 Similar pages
Name OS Title
tis_lock_global Tru64 Locks the DECthreads global mutex
pthread_lock_global_np Tru64 Locks the DECthreads global mutex
tis_mutex_unlock Tru64 Unlocks the specified mutex
pthread_mutex_unlock Tru64 Unlocks the specified mutex
pthread_mutexattr_gettype Tru64 Obtains the mutex type attribute in the specified mutex attributes object
pthread_mutexattr_settype Tru64 Specifies the mutex type attribute that is used when a mutex is created
pthread_exc_matches_np Tru64 (Macro) Determines whether two DECthreads exception objects are identical
pthread_exc_report_np Tru64 Produces a message that reports what a specified DECthreads status exception object represents
pthread_exc_set_status_np Tru64 (Macro) Imports a systemdefined error status into a DECthreads address exception object
BUF_LOCKINIT FreeBSD unlocks a locked buffer
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service