Home
last modified time | relevance | path

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

12

/arkcompiler/runtime_core/static_core/runtime/
Dlock_order_graph.h33 using ThreadId = ManagedThread::ThreadId;
46 LockOrderGraph(PandaMap<ThreadId, bool> nodes, PandaMap<ThreadId, ThreadId> edges) in LockOrderGraph() argument
58 PandaMap<ThreadId, bool> nodes_;
59 PandaMap<ThreadId, ThreadId> edges_;
Dlock_order_graph.cpp21 void UpdateMonitorsForThread(PandaMap<ManagedThread::ThreadId, Monitor::MonitorId> &enteringMonitor… in UpdateMonitorsForThread() argument
22 … PandaMap<Monitor::MonitorId, PandaSet<ManagedThread::ThreadId>> &enteredMonitors, in UpdateMonitorsForThread()
39 PandaMap<ThreadId, bool> nodes; in CheckForTerminationLoops()
40 PandaMap<ThreadId, ThreadId> edges; in CheckForTerminationLoops()
41 PandaMap<ThreadId, MonitorId> enteringMonitors; in CheckForTerminationLoops()
42 PandaMap<MonitorId, PandaSet<ThreadId>> enteredMonitors; in CheckForTerminationLoops()
91 PandaSet<ThreadId> nodesInDeadlocks = {}; in CheckForTerminationLoops()
105 PandaSet<ThreadId> exploredNodes = {node}; in CheckForTerminationLoops()
107 PandaList<ThreadId> front = {node}; in CheckForTerminationLoops()
114 ThreadId currentNode = *i; in CheckForTerminationLoops()
Dmark_word.h219 MarkWord DecodeFromLightLock(os::thread::ThreadId threadId, uint32_t count) in DecodeFromLightLock()
293 os::thread::ThreadId GetThreadId() const in GetThreadId()
296 …return static_cast<os::thread::ThreadId>((Value() >> LIGHT_LOCK_THREADID_SHIFT) & LIGHT_LOCK_THREA… in GetThreadId()
Dthread.cpp50 MTManagedThread::ThreadId MTManagedThread::GetInternalId() in GetInternalId()
207 ManagedThread::ManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *pandaVm, in ManagedThread()
598 MTManagedThread::MTManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *pandaVm, in MTManagedThread()
734 ThreadId tid = GetId(); in SetThreadPriority()
745 ThreadId tid = GetId(); in GetThreadPriority()
/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/static_core/platforms/unix/libpandabase/
Dthread.cpp40 ThreadId GetCurrentThreadId() in GetCurrentThreadId()
43 static_assert(sizeof(decltype(gettid())) == sizeof(ThreadId), "Incorrect alias for ThreadID"); in GetCurrentThreadId()
44 return static_cast<ThreadId>(gettid()); in GetCurrentThreadId()
48 return static_cast<ThreadId>(tid64); in GetCurrentThreadId()
51 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()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/
Dmutex.h55 PANDA_PUBLIC_API void LockForOther(panda::os::thread::ThreadId thread);
59 PANDA_PUBLIC_API void UnlockForOther(panda::os::thread::ThreadId thread);
96 bool IsHeld(panda::os::thread::ThreadId thread) in IsHeld()
111 static_assert(std::atomic<panda::os::thread::ThreadId>::is_always_lock_free);
222 alignas(alignof(uint32_t)) std::atomic<panda::os::thread::ThreadId> exclusiveOwner_ {0};
223 static_assert(std::atomic<panda::os::thread::ThreadId>::is_always_lock_free);
230 bool IsExclusiveHeld(panda::os::thread::ThreadId thread) in IsExclusiveHeld()
Dmutex.cpp29 thread_local panda::os::thread::ThreadId current_tid {0};
100 void Mutex::LockForOther(panda::os::thread::ThreadId thread) in LockForOther()
105 void Mutex::UnlockForOther(panda::os::thread::ThreadId thread) in UnlockForOther()
/arkcompiler/runtime_core/libpandabase/os/
Dthread.h36 using ThreadId = uint32_t; variable
41 ThreadId GetCurrentThreadId();
/arkcompiler/runtime_core/static_core/runtime/include/
Dmanaged_thread.h47 static constexpr ThreadId NON_INITIALIZED_THREAD_ID = 0;
48 static constexpr ThreadId MAX_INTERNAL_THREAD_ID = MarkWord::LIGHT_LOCK_THREADID_MAX_COUNT;
253 …explicit ManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *vm, Thread::Thre…
588 ThreadId GetId() const in GetId()
784 void UpdateId(ThreadId id) in UpdateId()
881 std::atomic<ThreadId> id_;
Druntime_notification.h94 virtual void ThreadStart([[maybe_unused]] ManagedThread::ThreadId threadId) {} in ThreadStart()
95 virtual void ThreadEnd([[maybe_unused]] ManagedThread::ThreadId threadId) {} in ThreadEnd()
96 virtual void VmInitialization([[maybe_unused]] ManagedThread::ThreadId threadId) {} in VmInitialization()
333 void VmInitializationEvent(ManagedThread::ThreadId threadId) in VmInitializationEvent()
Dthread.h252 using ThreadId = uint32_t;
358 ThreadId internalId_ {0};
Dmtmanaged_thread.h23 ThreadId GetInternalId();
29 explicit MTManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *vm,
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dthread.h36 using ThreadId = uint32_t; variable
41 PANDA_PUBLIC_API ThreadId GetCurrentThreadId();
/arkcompiler/runtime_core/static_core/runtime/tests/
Dmark_word_test.cpp70 ManagedThread::ThreadId GetThreadId() in GetThreadId()
112 ManagedThread::ThreadId GetThreadId() const in GetThreadId()
164 …void CheckLightweightLock(const ManagedThread::ThreadId tId, const uint32_t lockCount, bool isMark… in CheckLightweightLock()
200 void DecodeLightLock(ManagedThread::ThreadId tId, uint32_t lCount) in DecodeLightLock()
Dsignal_handler_test.cpp119 os::thread::ThreadId managedThread_ = 0;
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
Dthread.cpp26 ThreadId GetCurrentThreadId() in GetCurrentThreadId()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dthread.cpp26 ThreadId GetCurrentThreadId() in GetCurrentThreadId()
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dcoroutine.h60 static constexpr ThreadId MAX_COROUTINE_ID = MarkWord::LIGHT_LOCK_THREADID_MAX_COUNT;
249 explicit Coroutine(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *vm,
Dstackful_coroutine_worker.h177 os::thread::ThreadId id_;
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_coroutine.h106 …explicit EtsCoroutine(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *vm, PandaString n…
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dsampling_profiler.h134 PandaSet<os::thread::ThreadId> managedThreads_ GUARDED_BY(managedThreadsLock_);
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/sampler/
Dsampling_profiler_test.cpp94 static PandaSet<os::thread::ThreadId> ExtractManagedThreads(Sampler *sPtr) in ExtractManagedThreads()
98 PandaSet<os::thread::ThreadId> managedThreadsCopy = sPtr->managedThreads_; in ExtractManagedThreads()
181 void RunManagedThreadAndSaveThreadId(std::atomic<bool> *syncFlag, os::thread::ThreadId *id) in RunManagedThreadAndSaveThreadId()
266 os::thread::ThreadId mtId = 0; in TEST_F()

12