pthread_mutexattr_setwakeup_np()

Set the wake-up attribute of a mutex

Synopsis:

#include <pthread.h>

int pthread_mutexattr_setwakeup_np(
       pthread_mutexattr_t *attr,
       int wakeup );

Since:

BlackBerry 10.0.0

Arguments:

attr
A pointer to the pthread_mutexattr_t object that you want to set the attribute in.
wakeup
The new value for the attribute; one of:
  • PTHREAD_WAKEUP_DISABLE
  • PTHREAD_WAKEUP_ENABLE

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

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 these functions' names stands for "non-POSIX."

Returns:

EOK

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus