#include <MNSem.h>
Inheritance diagram for MNSem:
Public Member Functions | |
MNSem () | |
~MNSem () | |
void | signal () |
void | broadcast () |
void | wait (MNMutex &m) |
int | timedwait (MNMutex &m, const struct timespec *abstime) |
Protected Member Functions | |
bool | do_attr_init () |
bool | do_init () |
bool | do_destroy () |
bool | do_attr_destroy () |
bool | do_signal () |
bool | do_broadcast () |
bool | do_wait (MNMutex &m) |
bool | do_timedwait (MNMutex &m, const struct timespec *to) |
Protected Attributes | |
mnthread_condattr_t | _attr |
mnthread_cond_t | _ctr |
|
|
|
|
|
Unblocks a condition variable. If no thread is waiting for the condition variable, nothing happens. Otherwise all waiting threads are unblocked and compete for the given mutex(es). Reimplemented in MNSemDebug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Unblocks a condition variable. If no thread is waiting for the condition variable, nothing happens. Otherwise one (AIX: at least one) (Linux: exactly one) thread is unblocked. Reimplemented in MNSemDebug.
|
|
Unlock the given mutex and wait until the the condition variable is unblocked or until a timeout occurs. Than try to lock the mutex again.
|
|
Unlock the given mutex and wait until the the condition variable is unblocked. Than try to lock the mutex again.
Reimplemented in MNSemDebug.
|
|
|
|
|