FuriSemaphore.
More...
#include "base.h"
#include "thread.h"
Go to the source code of this file.
◆ furi_semaphore_acquire()
FuriStatus furi_semaphore_acquire |
( |
FuriSemaphore * | instance, |
|
|
uint32_t | timeout ) |
Acquire semaphore.
- Parameters
-
| instance | The pointer to FuriSemaphore instance |
[in] | timeout | The timeout |
- Returns
- The furi status.
◆ furi_semaphore_alloc()
FuriSemaphore * furi_semaphore_alloc |
( |
uint32_t | max_count, |
|
|
uint32_t | initial_count ) |
Allocate semaphore.
- Parameters
-
[in] | max_count | The maximum count |
[in] | initial_count | The initial count |
- Returns
- pointer to FuriSemaphore instance
◆ furi_semaphore_free()
Free semaphore.
- Parameters
-
instance | The pointer to FuriSemaphore instance |
◆ furi_semaphore_get_count()
Get semaphore count.
- Parameters
-
instance | The pointer to FuriSemaphore instance |
- Returns
- Semaphore count
◆ furi_semaphore_get_space()
Get available space.
- Parameters
-
instance | The pointer to FuriSemaphore instance |
- Returns
- Semaphore available space
◆ furi_semaphore_release()
Release semaphore.
- Parameters
-
instance | The pointer to FuriSemaphore instance |
- Returns
- The furi status.