Home | History | Annotate | Download | only in asan

Lines Matching defs:thread

12 // Thread-related code.
34 thread = args->thread;
35 thread->set_context(this);
40 thread = 0;
58 // a single thread.
63 // thread before all TSD destructors will be called for it.
82 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__);
83 thread->start_routine_ = start_routine;
84 thread->arg_ = arg;
86 return thread;
92 if (context->thread)
93 context->thread->Destroy();
104 // We also clear the shadow on thread destruction because
164 // start_routine_ == 0 if we're on the main thread or on one of the
174 // the thread's memory as non-live from the moment we call Destroy(), even
242 AsanThread *t = tctx->thread;
256 // TSD. Try to figure out if this is still the main thread by the stack
257 // address. We are not entirely sure that we have correct main thread
258 // limits, so only do this magic on Android, and only if the found thread
259 // is the main thread.
262 SetCurrentThread(tctx->thread);
263 return tctx->thread;
268 return context->thread;
273 VReport(2, "SetCurrentThread: %p for thread %p\n", t->context(),
291 return tctx ? tctx->thread : 0;
305 return context->thread;