FuriMutex.
More...
#include "base.h"
#include "thread.h"
Go to the source code of this file.
|
enum | FuriMutexType { FuriMutexTypeNormal
, FuriMutexTypeRecursive
} |
|
◆ furi_mutex_acquire()
FuriStatus furi_mutex_acquire |
( |
FuriMutex * | instance, |
|
|
uint32_t | timeout ) |
Acquire mutex.
- Parameters
-
| instance | The pointer to FuriMutex instance |
[in] | timeout | The timeout |
- Returns
- The furi status.
◆ furi_mutex_alloc()
FuriMutex * furi_mutex_alloc |
( |
FuriMutexType | type | ) |
|
Allocate FuriMutex.
- Parameters
-
- Returns
- pointer to FuriMutex instance
◆ furi_mutex_free()
Free FuriMutex.
- Parameters
-
instance | The pointer to FuriMutex instance |
◆ furi_mutex_get_owner()
Get mutex owner thread id.
- Parameters
-
instance | The pointer to FuriMutex instance |
- Returns
- The furi thread identifier.
◆ furi_mutex_release()
FuriStatus furi_mutex_release |
( |
FuriMutex * | instance | ) |
|
Release mutex.
- Parameters
-
instance | The pointer to FuriMutex instance |
- Returns
- The furi status.