|
ObjFW
|
#include "objfw-defs.h"#include "platform.h"import "OFObject.h"import "OFPlainMutex.h"#include <pthread.h>Go to the source code of this file.
Functions | |
| int | OFPlainConditionNew (OFPlainCondition *condition) |
| Creates a new plain condition. | |
| int | OFPlainConditionSignal (OFPlainCondition *condition) |
| Signals the specified condition. | |
| int | OFPlainConditionBroadcast (OFPlainCondition *condition) |
| Broadcasts the specified condition, meaning it will be signaled to everyone waiting. | |
| int | OFPlainConditionWait (OFPlainCondition *condition, OFPlainMutex *mutex) |
| Waits on the specified condition with the specified mutex. | |
| int | OFPlainConditionTimedWait (OFPlainCondition *condition, OFPlainMutex *mutex, OFTimeInterval timeout) |
| Waits on the specified condition with the specified mutex with a timeout. | |
| int | OFPlainConditionWaitOrExecSignal (OFPlainCondition *condition, OFPlainMutex *mutex, ULONG *signalMask) |
| Waits on the specified condition with the specified mutex or the specified Exec signal. | |
| int | OFPlainConditionTimedWaitOrExecSignal (OFPlainCondition *condition, OFPlainMutex *mutex, OFTimeInterval timeout, ULONG *signalMask) |
| Waits on the specified condition with the specified mutex or the specified Exec signal, up until the timeout is reached. | |
| int | OFPlainConditionFree (OFPlainCondition *condition) |
| Destroys the specified plain condition. | |
|
extern |
Broadcasts the specified condition, meaning it will be signaled to everyone waiting.
| condition | A pointer to the condition to broadcast |
|
extern |
Destroys the specified plain condition.
| condition | A pointer to the condition to destroy |
|
extern |
Creates a new plain condition.
A plain condition is similar to an OFCondition, but does not use exceptions and can be used from pure C code.
| condition | A pointer to the condition to create |
|
extern |
Signals the specified condition.
| condition | A pointer to the condition to signal |
|
extern |
Waits on the specified condition with the specified mutex with a timeout.
| condition | A pointer to the condition to wait on |
| mutex | The mutex to wait with |
| timeout | The timeout after which to give up |
|
extern |
Waits on the specified condition with the specified mutex or the specified Exec signal, up until the timeout is reached.
| condition | A pointer to the condition to wait on |
| mutex | The mutex to wait with |
| signalMask | The Exec signal mask to wait for |
| timeout | The timeout after which to give up |
|
extern |
Waits on the specified condition with the specified mutex.
| condition | A pointer to the condition to wait on |
| mutex | The mutex to wait with |
|
extern |
Waits on the specified condition with the specified mutex or the specified Exec signal.
| condition | A pointer to the condition to wait on |
| mutex | The mutex to wait with |
| signalMask | The Exec signal mask to wait for |