mars/mars_mutex_types.h File Reference

MARS Mutex Types. More...


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.


Detailed Description

MARS Mutex Types.


Variable Documentation

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.


Generated on Wed Jun 25 11:07:27 2008 for MARS by  doxygen 1.5.2