Lines Matching refs:thread
35 Thread* thread = reinterpret_cast<Thread*>(data); in ThreadRunner() local
37 thread->WaitForPending(); in ThreadRunner()
38 const AllocEntry& entry = thread->GetAllocEntry(); in ThreadRunner()
39 thread->AddTimeNsecs(AllocExecute(entry, thread->pointers())); in ThreadRunner()
41 thread->ClearPending(); in ThreadRunner()
76 Thread* thread = FindEmptyEntry(tid); in CreateThread() local
77 if (thread == nullptr) { in CreateThread()
81 thread->tid_ = tid; in CreateThread()
82 thread->pointers_ = pointers_; in CreateThread()
83 thread->total_time_nsecs_ = 0; in CreateThread()
84 if ((errno = pthread_create(&thread->thread_id_, nullptr, ThreadRunner, thread)) != 0) { in CreateThread()
89 return thread; in CreateThread()
136 void Threads::Finish(Thread* thread) { in Finish() argument
137 int ret = pthread_join(thread->thread_id_, nullptr); in Finish()
142 total_time_nsecs_ += thread->total_time_nsecs_; in Finish()
143 thread->tid_ = 0; in Finish()