Initialize a sleepon
#include <pthread.h>
int _sleepon_init( sleepon_t ** pl,
unsigned flags);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The _sleepon_init() function allocates a sleepon_t object (which is an opaque data structure) and stores a pointer to it in the location that pl points to.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |