18#include "pw_preprocessor/util.h"
19#include "pw_sync/lock_annotations.h"
23#include "pw_sync/virtual_basic_lockable.h"
24#include "pw_sync_backend/interrupt_spin_lock_native.h"
50 using native_handle_type = backend::NativeInterruptSpinLockHandle;
62 void lock() PW_EXCLUSIVE_LOCK_FUNCTION();
68 [[nodiscard]]
bool try_lock() PW_EXCLUSIVE_TRYLOCK_FUNCTION(true);
74 void unlock() PW_UNLOCK_FUNCTION();
76 [[nodiscard]] native_handle_type native_handle();
80 backend::NativeInterruptSpinLock native_type_;
89#include "pw_sync_backend/interrupt_spin_lock_inline.h"
104 PW_NO_LOCK_SAFETY_ANALYSIS;
109 PW_NO_LOCK_SAFETY_ANALYSIS;
114 PW_NO_LOCK_SAFETY_ANALYSIS;
Definition: virtual_basic_lockable.h:108
Definition: interrupt_spin_lock.h:48
Definition: interrupt_spin_lock.h:84
Provides basic helpers for reading and writing UTF-8 encoded strings.
Definition: alignment.h:27