CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches

Macros

#define trmutexCreate()   TRMutex_create()
 
#define trmutexWakeup(self)   (self)->_->wakeup(TRMutex(self))
 

Detailed Description

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.

Macro Definition Documentation

◆ trmutexCreate

#define trmutexCreate ( )    TRMutex_create()

TRMutex* trmutexCreate();

Create a new mutex-based resource.

Returns
New TRMutex instance

Definition at line 97 of file trmutex.h.

◆ trmutexWakeup

#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.

Definition at line 111 of file trmutex.h.