Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PTHREAD_SPIN_UNLOCK(3) FreeBSD Library Functions Manual	PTHREAD_SPIN_UNLOCK(3)

NAME
     pthread_spin_unlock -- unlock a spinlock object

SYNOPSIS
     #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:

     [EINVAL]		The value specified by lock is invalid.

     [EPERM]		The lock is not	owned by the calling thread.

SEE ALSO
     pthread_spin_init(3), pthread_spin_lock(3)

STANDARDS
     pthread_spin_unlock() conforms to IEEE Std	1003.1-2008 ("POSIX.1").

FreeBSD	13.0			 April 6, 2020			  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO | STANDARDS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pthread_spin_unlock&sektion=3&manpath=OpenBSD+6.9>

home | help