|
CX Framework
Cross-platform C utility framework
|
Macros | |
| #define | trmutexCreate() TRMutex_create() |
| #define | trmutexWakeup(self) (self)->_->wakeup(TRMutex(self)) |
TRMutex provides mutex-based serialization of task execution. Tasks requiring this resource will run one at a time, with approximate FIFO ordering.
Characteristics:
When to use:
Alternatives:
Simple mutex-based resource with approximate FIFO ordering.
| #define trmutexCreate | ( | ) | TRMutex_create() |
| #define trmutexWakeup | ( | self | ) | (self)->_->wakeup(TRMutex(self)) |
void trmutexWakeup(TRMutex* self);
Manually release a task from wait list. Call this after releasing mtx if locked from non-task code.