Data Structures | |
struct | mars_mutex |
MARS mutex structure. More... | |
Defines | |
#define | MARS_MUTEX_SIZE 128 |
Size of mutex structure. | |
#define | MARS_MUTEX_ALIGN 128 |
Alignment of mutex structure. | |
#define | MARS_MUTEX_ALIGN_MASK 0x7f |
Alignment mask of mutex structure. | |
#define | MARS_MUTEX_LOCKED 0x1 |
Value of mutex lock variable in locked state. | |
#define | MARS_MUTEX_UNLOCKED 0x0 |
Value of mutex lock variable in unlocked state. | |
Variables | |
mars_mutex | MARS_MUTEX_ALIGN |
MARS mutex structure. |
struct mars_mutex MARS_MUTEX_ALIGN |
MARS mutex structure.
An instance of this structure must be created when using the MARS Mutex API.
If allocating a memory area for this structure, make sure to allocate a memory area that is aligned to MARS_MUTEX_ALIGN bytes and of size MARS_MUTEX_SIZE bytes.