Lines Matching refs:threads_
61 threads_ = new (memory) Thread[max_threads_]; in Threads()
65 if (threads_) { in ~Threads()
66 munmap(threads_, data_size_); in ~Threads()
67 threads_ = nullptr; in ~Threads()
95 pid_t cur_tid = threads_[index].tid_; in FindThread()
97 return threads_ + index; in FindThread()
111 pid_t cur_tid = threads_[i].tid_; in WaitForAllToQuiesce()
114 threads_[i].WaitForReady(); in WaitForAllToQuiesce()
126 if (threads_[index].tid_ == 0) { in FindEmptyEntry()
127 return threads_ + index; in FindEmptyEntry()
150 if (threads_[i].tid_ != 0) { in FinishAll()
151 threads_[i].SetAllocEntry(&thread_done); in FinishAll()
152 threads_[i].SetPending(); in FinishAll()
153 Finish(threads_ + i); in FinishAll()