Lines Matching refs:thread_registry
26 static ThreadRegistry *thread_registry; variable
35 thread_registry = in InitializeThreadRegistry()
48 return thread_registry->CreateThread(0, detached, parent_tid, arg); in ThreadCreate()
53 thread_registry->StartThread(tid, os_id, thread_type, arg); in ThreadStart()
58 thread_registry->FinishThread(GetCurrentThread()); in ThreadFinish()
63 if (!thread_registry) in CurrentThreadContext()
68 return (ThreadContext *)thread_registry->GetThreadLocked(GetCurrentThread()); in CurrentThreadContext()
81 void LockThreadRegistry() { thread_registry->Lock(); } in LockThreadRegistry()
83 void UnlockThreadRegistry() { thread_registry->Unlock(); } in UnlockThreadRegistry()
86 thread_registry->CheckLocked(); in GetThreadRegistryLocked()
87 return thread_registry; in GetThreadRegistryLocked()