1PTHREAD_SPIN_UNLOCK(3P)    POSIX Programmer's Manual   PTHREAD_SPIN_UNLOCK(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       pthread_spin_unlock - unlock a  spin  lock  object  (ADVANCED  REALTIME
13       THREADS)
14

SYNOPSIS

16       #include <pthread.h>
17
18       int pthread_spin_unlock(pthread_spinlock_t *lock);
19
20

DESCRIPTION

22       The  pthread_spin_unlock()  function shall release the spin lock refer‐
23       enced  by  lock  which  was  locked  via  the  pthread_spin_lock()   or
24       pthread_spin_trylock() functions. The results are undefined if the lock
25       is not held by the calling thread. If there are threads spinning on the
26       lock  when  pthread_spin_unlock() is called, the lock becomes available
27       and an unspecified spinning thread shall acquire the lock.
28
29       The results are undefined if this function is called with an uninitial‐
30       ized thread spin lock.
31

RETURN VALUE

33       Upon  successful  completion,  the pthread_spin_unlock() function shall
34       return zero; otherwise, an error number shall be returned  to  indicate
35       the error.
36

ERRORS

38       The pthread_spin_unlock() function may fail if:
39
40       EINVAL An invalid argument was specified.
41
42       EPERM  The calling thread does not hold the lock.
43
44
45       This function shall not return an error code of [EINTR].
46
47       The following sections are informative.
48

EXAMPLES

50       None.
51

APPLICATION USAGE

53       The pthread_spin_unlock() function is part of the Spin Locks option and
54       need not be provided on all implementations.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       pthread_spin_destroy(), pthread_spin_lock(), the Base Definitions  vol‐
64       ume of IEEE Std 1003.1-2001, <pthread.h>
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
69       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
70       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
71       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
72       event of any discrepancy between this version and the original IEEE and
73       The  Open Group Standard, the original IEEE and The Open Group Standard
74       is the referee document. The original Standard can be  obtained  online
75       at http://www.opengroup.org/unix/online.html .
76
77
78
79IEEE/The Open Group                  2003              PTHREAD_SPIN_UNLOCK(3P)
Impressum