#include <stdbool.h>
#include <common/list.h>
Go to the source code of this file.
◆ mutex_init()
void mutex_init |
( |
struct mutex * |
mtx | ) |
|
Initialize the mutex.
- Parameters
-
- Return values
-
◆ mutex_is_locked()
bool mutex_is_locked |
( |
struct mutex * |
mtx | ) |
|
Check if the mutex is locked or not.
- Parameters
-
- Return values
-
◆ mutex_lock()
int mutex_lock |
( |
struct mutex * |
mtx | ) |
|
Lock the mutex.
- Parameters
-
- Return values
-
int | 0 on success and nonzero error number on error. |
◆ mutex_unlock()
int mutex_unlock |
( |
struct mutex * |
mtx | ) |
|
Unlock the mutex.
- Parameters
-
- Return values
-
int | 0 on success and nonzero error number on error. |