Index of Section 2 Manual Pages
| Interix / SUA | pthread_spin_unlock.2 | Interix / SUA |
pthread_spin_unlock(2) pthread_spin_unlock(2)
pthread_spin_unlock()
NAME
pthread_spin_unlock() - unlock a spin lock
SYNOPSIS
#include
int pthread_spin_unlock(pthread_spinlock_t *lock);
DESCRIPTION
The pthread_spin_unlock(2) function releases a lock held by the calling
thread on the spin lock referenced by the lock argument. The lock must be
held by the calling thread.
RETURN VALUES
On success, the function returns 0; otherwise, an error code is returned.
ERRORS
The pthread_spin_unlock() function can fail for the following reasons:
[EINVAL]
The lock argument does not refer to a valid spin lock.
[EPERM]
The calling thread does not hold the spin lock.
This function does not return [EINTR].
SEE ALSO
pthread_spin_destroy(2)
pthread_spin_lock(2)
USAGE NOTES
The pthread_spin_unlock function is thread safe.
The pthread_spin_unlock function is not async-signal safe.