pthread_spin_unlock(3)
Canonical URL: /pthread_spin_unlock.3/
PTHREAD_SPIN_UNLOCK(3)
Library Functions Manual
PTHREAD_SPIN_UNLOCK(3)
NAME
pthread_spin_unlock —
unlock a spinlock object
SYNOPSIS
/* -lpthread */
#include <pthread.h>
int
pthread_spin_unlock(pthread_spinlock_t
*lock);
DESCRIPTION
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.
RETURN VALUES
If successful, pthread_spin_unlock()
returns zero; otherwise an error number is returned to indicate the
error.
ERRORS
pthread_spin_unlock() will fail if:
SEE ALSO
STANDARDS
pthread_spin_unlock() conforms to
IEEE Std 1003.1-2008 (“POSIX.1”).
OpenBSD 7.9 June
7, 2025 PTHREAD_SPIN_UNLOCK(3)
Need conceptual guidance? Continue in the OpenBSD Handbook.