|
CX Framework
Cross-platform C utility framework
|
Event synchronization primitive. More...
#include <cx/cx.h>#include "aspin.h"#include "futex.h"Go to the source code of this file.
Data Structures | |
| struct | Event |
| struct | SharedEvent |
Macros | |
| #define | eventInit(e, ...) _eventInit(e, opt_flags(__VA_ARGS__)) |
| #define | eventSignal(e) eventSignalMany(e, 1) |
Typedefs | |
| typedef struct Event | Event |
| typedef struct SharedEvent | SharedEvent |
Enumerations | |
| enum | EVENTINITFUNC_FLAGS { EV_Spin = 1 , EV_UIEvent = 2 } |
| Event initialization flags. More... | |
Functions | |
| bool | eventSignalMany (Event *e, int32 count) |
| bool | eventSignalAll (Event *e) |
| bool | eventWaitTimeout (Event *e, uint64 timeout) |
| void | eventWait (Event *e) |
| bool | eventSignalLock (Event *e) |
| bool | eventReset (Event *e) |
| void | eventDestroy (Event *e) |
| SharedEvent * | sheventCreate (uint32 flags) |
| SharedEvent * | sheventAcquire (SharedEvent *ev) |
| void | sheventRelease (SharedEvent **pev) |