pthread_spin_unlock (3) Linux Manual Page
pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock – lock and unlock a spin lock Synopsis #include <pthread.h> int pthread_spin_lock(pthread_spinlock_t *lock); int pthread_spin_trylock(pthread_spinlock_t *lock); int pthread_spin_unlock(pthread_spinlock_t *lock); Compile and link with -pthread. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): pthread_spin_lock(), pthread_spin_trylock(): _POSIX_C_SOURCE >= 200112L Description The pthread_spin_lock() function locks the spin lock referred to by lock. If the spin…
