Lines Matching refs:tid
72 Thread* Threads::CreateThread(pid_t tid) { in CreateThread() argument
76 Thread* thread = FindEmptyEntry(tid); in CreateThread()
81 thread->tid_ = tid; in CreateThread()
85 err(1, "Failed to create thread %d: %s\n", tid, strerror(errno)); in CreateThread()
92 Thread* Threads::FindThread(pid_t tid) { in FindThread() argument
93 size_t index = GetHashEntry(tid); in FindThread()
96 if (cur_tid == tid) { in FindThread()
119 size_t Threads::GetHashEntry(pid_t tid) { in GetHashEntry() argument
120 return tid % max_threads_; in GetHashEntry()
123 Thread* Threads::FindEmptyEntry(pid_t tid) { in FindEmptyEntry() argument
124 size_t index = GetHashEntry(tid); in FindEmptyEntry()