| PTHREAD_SPIN_UNLOCK(3) | Library Functions Manual | PTHREAD_SPIN_UNLOCK(3) |
pthread_spin_unlock —
unlock a spinlock object
#include
<pthread.h>
int
pthread_spin_unlock(pthread_spinlock_t
*lock);
The
pthread_spin_unlock()
function releases the spin lock referenced by lock
which was locked via the
pthread_spin_lock()
or
pthread_spin_trylock()
functions.
If successful, pthread_spin_unlock()
returns zero; otherwise an error number is returned to indicate the
error.
pthread_spin_unlock() will fail if:
pthread_spin_unlock() conforms to
IEEE Std 1003.1-2008 (“POSIX.1”).
| April 6, 2020 | openbsd |