Lines Matching refs:thread
34 Thread* thread = reinterpret_cast<Thread*>(data); in ThreadRunner() local
36 thread->WaitForPending(); in ThreadRunner()
37 Action* action = thread->GetAction(); in ThreadRunner()
38 thread->AddTimeNsecs(action->Execute(thread->pointers())); in ThreadRunner()
40 thread->ClearPending(); in ThreadRunner()
80 Thread* thread = FindEmptyEntry(tid); in CreateThread() local
81 if (thread == nullptr) { in CreateThread()
85 thread->tid_ = tid; in CreateThread()
86 thread->pointers_ = pointers_; in CreateThread()
87 thread->total_time_nsecs_ = 0; in CreateThread()
88 if (pthread_create(&thread->thread_id_, nullptr, ThreadRunner, thread) == -1) { in CreateThread()
93 return thread; in CreateThread()
140 void Threads::Finish(Thread* thread) { in Finish() argument
141 int ret = pthread_join(thread->thread_id_, nullptr); in Finish()
146 total_time_nsecs_ += thread->total_time_nsecs_; in Finish()
147 thread->tid_ = 0; in Finish()