Constants

A flag that allows to distinguish PTHREAD_MUTEX_NORMAL from PTHREAD_MUTEX_DEFAULT. Since in glibc they have the same numeric values, but different behaviour, we need a way to distinguish them. We do this by setting this bit flag to the PTHREAD_MUTEX_NORMAL mutexes. See the comment in pthread_mutexattr_settype function.

Traits

Functions

After a thread waiting on a condvar was signalled: Reacquire the conditional variable and remove the timeout callback if any was registered.
Try to reacquire the mutex associated with the condition variable after we were signaled.
Release the mutex associated with the condition variable because we are entering the waiting state.