Defines mutex primitives for thread synchronization. More...
#include <stdbool.h>#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | SYS_MUTEX_CAPACITY 32 |
| Maximum number of mutexes available in static-pool implementations. | |
Typedefs | |
| typedef struct sys_mutex_t | sys_mutex_t |
| Mutex. | |
Functions | |
Lifecycle | |
| sys_mutex_t * | sys_mutex_init (void) |
| Initialize a new mutex. More... | |
| void | sys_mutex_deinit (sys_mutex_t *mutex) |
| Release a mutex. More... | |
Methods | |
| bool | sys_mutex_lock (sys_mutex_t *mutex) |
| Lock a mutex, by blocking. More... | |
| bool | sys_mutex_trylock (sys_mutex_t *mutex) |
| Try to lock a mutex. More... | |
| bool | sys_mutex_unlock (sys_mutex_t *mutex) |
| Unlock a mutex. More... | |
Defines mutex primitives for thread synchronization.
Definition in file mutex.h.