Home
last modified time | relevance | path

Searched refs:lazy_tls_ptr (Results 1 – 4 of 4) sorted by relevance

/external/libbrillo/brillo/message_loops/
Dmessage_loop.cc17 base::LazyInstance<base::ThreadLocalPointer<MessageLoop> >::Leaky lazy_tls_ptr = variable
25 DCHECK(lazy_tls_ptr.Pointer()->Get() != nullptr) << in current()
28 return lazy_tls_ptr.Pointer()->Get(); in current()
32 return lazy_tls_ptr.Pointer()->Get() != nullptr; in ThreadHasCurrent()
36 DCHECK(lazy_tls_ptr.Pointer()->Get() == nullptr) << in SetAsCurrent()
38 lazy_tls_ptr.Pointer()->Set(this); in SetAsCurrent()
42 DCHECK(lazy_tls_ptr.Pointer()->Get() == this) << in ReleaseFromCurrent()
44 lazy_tls_ptr.Pointer()->Set(nullptr); in ReleaseFromCurrent()
48 if (lazy_tls_ptr.Pointer()->Get() == this) in ~MessageLoop()
49 lazy_tls_ptr.Pointer()->Set(nullptr); in ~MessageLoop()
/external/libchrome/base/threading/
Dthread_task_runner_handle.cc19 lazy_tls_ptr = LAZY_INSTANCE_INITIALIZER; variable
25 ThreadTaskRunnerHandle* current = lazy_tls_ptr.Pointer()->Get(); in Get()
32 return !!lazy_tls_ptr.Pointer()->Get(); in IsSet()
42 lazy_tls_ptr.Pointer()->Set(this); in ThreadTaskRunnerHandle()
47 DCHECK_EQ(lazy_tls_ptr.Pointer()->Get(), this); in ~ThreadTaskRunnerHandle()
48 lazy_tls_ptr.Pointer()->Set(nullptr); in ~ThreadTaskRunnerHandle()
Dsequenced_task_runner_handle.cc20 lazy_tls_ptr = LAZY_INSTANCE_INITIALIZER; variable
27 const SequencedTaskRunnerHandle* handle = lazy_tls_ptr.Pointer()->Get(); in Get()
49 return lazy_tls_ptr.Pointer()->Get() || in IsSet()
59 lazy_tls_ptr.Pointer()->Set(this); in SequencedTaskRunnerHandle()
64 DCHECK_EQ(lazy_tls_ptr.Pointer()->Get(), this); in ~SequencedTaskRunnerHandle()
65 lazy_tls_ptr.Pointer()->Set(nullptr); in ~SequencedTaskRunnerHandle()
/external/libchrome/base/message_loop/
Dmessage_loop.cc48 LazyInstance<base::ThreadLocalPointer<MessageLoop> >::Leaky lazy_tls_ptr = variable
187 lazy_tls_ptr.Pointer()->Set(nullptr); in ~MessageLoop()
195 return lazy_tls_ptr.Pointer()->Get(); in current()
413 lazy_tls_ptr.Pointer()->Set(this); in BindToCurrentThread()