• Home
  • Raw
  • Download

Lines Matching refs:tid

19 ThreadContextBase::ThreadContextBase(u32 tid)  in ThreadContextBase()  argument
20 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0), in ThreadContextBase()
75 if (tid != 0) in SetCreated()
124 u32 tid = kUnknownTid; in CreateThread() local
127 tid = tctx->tid; in CreateThread()
130 tid = n_contexts_++; in CreateThread()
131 tctx = context_factory_(tid); in CreateThread()
132 threads_[tid] = tctx; in CreateThread()
144 CHECK_NE(tid, kUnknownTid); in CreateThread()
145 CHECK_LT(tid, max_threads_); in CreateThread()
154 return tid; in CreateThread()
160 for (u32 tid = 0; tid < n_contexts_; tid++) { in RunCallbackForEachThreadLocked() local
161 ThreadContextBase *tctx = threads_[tid]; in RunCallbackForEachThreadLocked()
170 for (u32 tid = 0; tid < n_contexts_; tid++) { in FindThread() local
171 ThreadContextBase *tctx = threads_[tid]; in FindThread()
173 return tctx->tid; in FindThread()
181 for (u32 tid = 0; tid < n_contexts_; tid++) { in FindThreadContextLocked() local
182 ThreadContextBase *tctx = threads_[tid]; in FindThreadContextLocked()
200 void ThreadRegistry::SetThreadName(u32 tid, const char *name) { in SetThreadName() argument
202 CHECK_LT(tid, n_contexts_); in SetThreadName()
203 ThreadContextBase *tctx = threads_[tid]; in SetThreadName()
211 for (u32 tid = 0; tid < n_contexts_; tid++) { in SetThreadNameByUserId() local
212 ThreadContextBase *tctx = threads_[tid]; in SetThreadNameByUserId()
221 void ThreadRegistry::DetachThread(u32 tid, void *arg) { in DetachThread() argument
223 CHECK_LT(tid, n_contexts_); in DetachThread()
224 ThreadContextBase *tctx = threads_[tid]; in DetachThread()
239 void ThreadRegistry::JoinThread(u32 tid, void *arg) { in JoinThread() argument
241 CHECK_LT(tid, n_contexts_); in JoinThread()
242 ThreadContextBase *tctx = threads_[tid]; in JoinThread()
252 void ThreadRegistry::FinishThread(u32 tid) { in FinishThread() argument
258 CHECK_LT(tid, n_contexts_); in FinishThread()
259 ThreadContextBase *tctx = threads_[tid]; in FinishThread()
269 void ThreadRegistry::StartThread(u32 tid, uptr os_id, void *arg) { in StartThread() argument
272 CHECK_LT(tid, n_contexts_); in StartThread()
273 ThreadContextBase *tctx = threads_[tid]; in StartThread()