Home
last modified time | relevance | path

Searched refs:ThreadId (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dthread.cpp39 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()
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/
Dmutex.h56 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()
Dmutex.cpp30 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()
Dfmutex.h49 #define THREAD_ID thread::ThreadId // NOLINT(cppcoreguideli…
/arkcompiler/runtime_core/libpandabase/os/
Dthread.h36 using ThreadId = uint32_t; variable
41 ThreadId GetCurrentThreadId();
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dthread.cpp26 ThreadId GetCurrentThreadId() in GetCurrentThreadId()
/arkcompiler/ets_runtime/ecmascript/
Djs_thread.h201 using ThreadId = uint32_t; variable
393 ThreadId GetThreadId() const in GetThreadId()
403 static ThreadId GetCurrentThreadId() in GetCurrentThreadId()
901 std::atomic<ThreadId> id_;