OpenBSD manual page server

Manual Page Search Parameters

PTHREAD_SPIN_UNLOCK(3) Library Functions Manual PTHREAD_SPIN_UNLOCK(3)

pthread_spin_unlockunlock a spinlock object

#include <pthread.h>

int
pthread_spin_unlock(pthread_spinlock_t *lock);

The () function releases the spin lock referenced by lock which was locked via the () or () functions.

If successful, pthread_spin_unlock() returns zero; otherwise an error number is returned to indicate the error.

pthread_spin_unlock() will fail if:

[]
The value specified by lock is invalid.
[]
The lock is not owned by the calling thread.

pthread_spin_init(3), pthread_spin_lock(3)

pthread_spin_unlock() conforms to IEEE Std 1003.1-2008 (“POSIX.1”).

June 5, 2013 OpenBSD-5.9