mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
Merge remote-tracking branch 'origin/dev' into nestednonces
This commit is contained in:
@@ -41,3 +41,7 @@ typedef FuriEventFlag* FuriApiLock;
|
||||
#define api_lock_wait_unlock_and_free(_lock) \
|
||||
api_lock_wait_unlock(_lock); \
|
||||
api_lock_free(_lock);
|
||||
|
||||
#define api_lock_is_locked(_lock) (!(furi_event_flag_get(_lock) & API_LOCK_EVENT))
|
||||
|
||||
#define api_lock_relock(_lock) furi_event_flag_clear(_lock, API_LOCK_EVENT)
|
||||
|
||||
Reference in New Issue
Block a user