18#include "pw_sync/lock_annotations.h"
19#include "pw_thread/config.h"
20#include "pw_thread/thread.h"
59#if PW_THREAD_CHECKER_RUNTIME_ASSERT_ENABLED
62 PW_ASSERT(pw::this_thread::get_id() == self_);
81#if PW_THREAD_CHECKER_RUNTIME_ASSERT_ENABLED
82 if (!checker_.has_value()) {
83 checker_.emplace(pw::this_thread::get_id());
91#if PW_THREAD_CHECKER_RUNTIME_ASSERT_ENABLED
92 std::optional<ThreadChecker> checker_;
#define PW_LOCKABLE(name)
Definition: lock_annotations.h:208
#define PW_EXCLUSIVE_LOCK_FUNCTION(...)
Definition: lock_annotations.h:230
#define PW_UNLOCK_FUNCTION(...)
Definition: lock_annotations.h:247
::pw::thread::backend::NativeId id
Definition: thread.h:90
The Pigweed namespace.
Definition: alignment.h:27