Standard C Library Functions pthreadspinunlock(3C)
NAME
pthreadspinunlock - unlock a spin lock object
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int pthreadspinunlock(pthreadspinlockt *lock);
DESCRIPTION
The pthreadspinunlock() function releases the spin lock
referenced by lock which was locked with the
pthreadspinlock(3C) or pthreadspintrylock(3C) functions.
The results are undefined if the lock is not held by the
calling thread. If there are threads spinning on the lock
when pthreadspinunlock() is called, the lock becomes
available and an unspecified spinning thread acquires the
lock.
The results are undefined if this function is called with an
uninitialized thread spin lock.
RETURN VALUES
Upon successful completion, the pthreadspinunlock() func-
tion returns 0. Otherwise, an error number shall be returned
to indicate the error.
ERORS
The pthreadspinunlock() function will fail if:
EINVAL An invalid argument was specified.
EPERM The calling thread does not hold the lock.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 30 Jan 2004 1
Standard C Library Functions pthreadspinunlock(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Standard
MT-Level MT-Safe
SEE ALSO
pthreadspindestroy(3C), pthreadspinlock(3C), attri-
butes(5), standards(5)
SunOS 5.11 Last change: 30 Jan 2004 2
|