MOS Source Code
Loading...
Searching...
No Matches
mutex.h File Reference
#include <mos/moslib_global.h>
#include <mos/types.h>
+ Include dependency graph for mutex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MUTEX_INIT   0
 

Typedefs

typedef futex_word_t mutex_t
 

Functions

should_inline void mutex_init (mutex_t *mutex)
 
MOSAPI void mutex_acquire (mutex_t *mutex)
 
MOSAPI void mutex_release (mutex_t *mutex)
 

Macro Definition Documentation

◆ MUTEX_INIT

#define MUTEX_INIT   0

Definition at line 9 of file mutex.h.

Referenced by mutex_init().

Typedef Documentation

◆ mutex_t

typedef pthread_mutex_t mutex_t

Definition at line 8 of file mutex.h.

Function Documentation

◆ mutex_init()

should_inline void mutex_init ( mutex_t * mutex)

Definition at line 11 of file mutex.h.

◆ mutex_acquire()

MOSAPI void mutex_acquire ( mutex_t * mutex)

Definition at line 17 of file mutex.c.

◆ mutex_release()

MOSAPI void mutex_release ( mutex_t * mutex)

Definition at line 31 of file mutex.c.