Set the wake-up attribute of a mutex
#include <pthread.h>
int pthread_mutexattr_setwakeup_np(
pthread_mutexattr_t *attr,
int wakeup );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_mutexattr_setwakeup_np() function sets the wake-up attribute of the given mutex. If this attribute is enabled, a thread can call pthread_mutex_wakeup_np() to unblock any threads that are waiting for the mutex.
The "np" in this function's name stands for "non-POSIX."
EOK
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |