pthread_cond_wait()
Wait on condition variable
Synopsis:
#include <pthread.h> int pthread_cond_wait( pthread_cond_t* cond, pthread_mutex_t* mutex );
Since:
BlackBerry 10.0.0
Arguments:
- cond
- A pointer to the pthread_cond_t object that you want the threads to block on.
- mutex
- The mutex that you want to unlock.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:,.
- Don't use a recursive mutex with condition variables.
- Make sure that the thread's cleanup handlers unlock the mutex.
- This function can interfere with the kernel's efforts to manage power usage. For more information, see the Tick, Tock: Understanding the Microkernel's Concept of Time chapter of the BlackBerry 10 OS Programmer's Guide. or mutex is invalid.
- Concurrent waits on cond used different mutexes.
- The mutex has died; see SyncMutexEvent().
- EPERM
- The current thread doesn't own the mutex.
Examples:(); }
Classification:
Last modified: 2014-06-24
Got questions about leaving a comment? Get answers from our Disqus FAQ.comments powered by Disqus