QNX Developer Support
|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Unlock a thread spinlock
#include <pthread.h> int pthread_spin_unlock( spinlock_t * spinner );
- A pointer to the pthread_spinlock_t object that you want to unlock.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
If there are threads spinning on spinner, the spinlock becomes available, and an unspecified thread acquires the lock.
- Invalid process spinlock spinner.
- The calling thread doesn't hold the lock.