mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-23 01:18:12 -07:00
Merge remote-tracking branch 'ofw/dev' into yeet-lfs
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