MUTEX_LOCK man page on IRIX

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



MUTEX_LOCK(D3)							MUTEX_LOCK(D3)

NAME
     MUTEX_LOCK - acquire a mutual exclusion lock

SYNOPSIS
     #include <sys/ksynch.h>
     #include <sys/ddi.h>
     void MUTEX_LOCK(mutex_t *lockp, int priority);

   Arguments
     lockp     Pointer to the mutual exclusion lock to be acquired.

     priority  Reserved for future use (must be equal to -1).

DESCRIPTION
     MUTEX_LOCK acquires the mutual exclusion lock specified by lockp.	If the
     lock is not immediately available, the calling thread of execution blocks
     until the lock becomes available to the caller, at which point the caller
     is reactivated and returns with the lock held.

     The caller will not be interrupted by signals while sleeping inside
     MUTEX_LOCK.

     MUTEX_LOCK differs from SLEEP_LOCK in that it implements priority
     inheritance -- the owner of the lock inherits the scheduling priority of
     any callers waiting for the lock if any of the waiters are running at a
     higher priority than the owner.  The original priority is reinstated when
     the lock is released.

   Return Values
     None

   Level
     Base only.

   Synchronization Constraints
     Can sleep.

     Driver-defined basic locks may not be held across calls to this function.

     Driver-defined sleep locks may be held across calls to this function
     subject to the recursion restrictions described below.

   Warnings
     Mutual exclusion locks are not recursive -- a call to MUTEX_LOCK
     attempting to acquire a lock that is currently held by the calling thread
     of execution will result in deadlock.

REFERENCES
     MUTEX_ALLOC(D3), MUTEX_INIT(D3), MUTEX_DEALLOC(D3), MUTEX_DESTROY(D3),
     MUTEX_TRYLOCK(D3), MUTEX_UNLOCK(D3), MUTEX_OWNED(D3), MUTEX_MINE(D3),
     SLEEP_LOCK(D3).

									Page 1

[top]

List of man pages available for IRIX

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