pthread_mutex_unlock man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

pthread_mutex_unlock(3thr)			    pthread_mutex_unlock(3thr)

Name
       pthread_mutex_unlock - Unlocks a mutex

Syntax
       #include <pthread.h>

       int pthread_mutex_unlock (mutex)
       pthread_mutex_t *mutex;

Arguments
       mutex   Mutex unlocked.

Description
       This  routine unlocks a mutex. If no threads are waiting for the mutex,
       the mutex unlocks with no current owner.	 If one or  more  threads  are
       waiting	to lock the specified mutex, this routine causes one thread to
       return from its call to pthread_mutex_lock.  The scheduling  policy  is
       used  to determine which thread acquires the mutex.  For the SCHED_FIFO
       and SCHED_RR policies, a blocked thread is chosen  in  priority	order,
       using FIFO within priorities.

       The  results  of	 calling  this	routine are unpredictable if the mutex
       specified in mutex is unlocked. The results of calling this routine are
       also  unpredictable  if the mutex specified in mutex is currently owned
       by a thread other than the calling thread.

Return Values
       If an error condition occurs, this routine returns -1 and sets errno to
       the corresponding error value.  Possible return values are as follows.

       Return	Error	   Description
       0		   Successful  compleā€
			   tion.

       -1	[EINVAL]   The value specified
			   by	  mutex	    is
			   invalid.

						    pthread_mutex_unlock(3thr)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net