![]() |
![]() |
![]() |
@@@Lock a sleepon
#include <@@@unistd.h> int _sleepon_lock( sleepon_t * l );
libc
The _sleepon_lock() function locks the mutex asociated with the sleepon structure, l.
It must be called before the _sleepon_wait(), _sleepon_sleepon(), and _sleepon_broadcast() functions.
The same values as pthread_mutex_lock():
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
![]() |
![]() |
![]() |