Lines Matching refs:thread
103 Thread* thread = threads.FindThread(tid);
104 if (thread == nullptr) {
105 thread = threads.CreateThread(tid);
108 // Wait for the thread to complete any previous actions before handling
110 thread->WaitForReady();
112 Action* action = thread->CreateAction(key_pointer, type, line + line_pos);
120 // before triggering the action. Otherwise, another thread could
125 // Tell the thread to execute the action.
126 thread->SetPending();
129 // Wait for the thread to finish and clear the thread entry.
130 threads.Finish(thread);
134 // another thread could be creating the same allocation where are
137 thread->WaitForReady();