Lock a sleepon
#include <pthread.h> int _sleepon_lock( sleepon_t * l );
- A pointer to a sleepon_t that you created by calling _sleepon_init().
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The _sleepon_lock() function locks the mutex associated with the sleepon structure, l.
- Insufficient system resources were available to lock the mutex.
- The calling thread already owns mutex, and the mutex doesn't allow recursive behavior.
- Invalid mutex.
The _sleepon_lock() function returns the same values as pthread_mutex_lock().
Last modified: 2013-09-30