Searched refs:ThreadId (Results 1 – 7 of 7) sorted by relevance
39 ThreadId GetCurrentThreadId() in GetCurrentThreadId()42 static_assert(sizeof(decltype(gettid())) == sizeof(ThreadId), "Incorrect alias for ThreadID"); in GetCurrentThreadId()43 return static_cast<ThreadId>(gettid()); in GetCurrentThreadId()47 return static_cast<ThreadId>(tid64); in GetCurrentThreadId()50 return static_cast<ThreadId>(syscall(SYS_gettid)); in GetCurrentThreadId()
56 void LockForOther(thread::ThreadId thread);60 void UnlockForOther(thread::ThreadId thread);97 bool IsHeld(thread::ThreadId thread) in IsHeld()112 static_assert(std::atomic<thread::ThreadId>::is_always_lock_free);223 alignas(alignof(uint32_t)) std::atomic<thread::ThreadId> exclusive_owner_ {0};224 static_assert(std::atomic<thread::ThreadId>::is_always_lock_free);231 bool IsExclusiveHeld(thread::ThreadId thread) in IsExclusiveHeld()
30 thread_local thread::ThreadId current_tid {0};101 void Mutex::LockForOther(thread::ThreadId thread) in LockForOther()106 void Mutex::UnlockForOther(thread::ThreadId thread) in UnlockForOther()
49 #define THREAD_ID thread::ThreadId // NOLINT(cppcoreguideli…
36 using ThreadId = uint32_t; variable41 ThreadId GetCurrentThreadId();
26 ThreadId GetCurrentThreadId() in GetCurrentThreadId()
201 using ThreadId = uint32_t; variable393 ThreadId GetThreadId() const in GetThreadId()403 static ThreadId GetCurrentThreadId() in GetCurrentThreadId()901 std::atomic<ThreadId> id_;