Lines Matching defs:ThreadLocal
212 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
1641 // Mutex and ThreadLocal have already been imported into the namespace.
1734 // Provides a way for a thread to send notifications to a ThreadLocal
1739 // this ThreadLocal<T>'s constructor and returns it. It is the caller's
1740 // responsibility not to call this when the ThreadLocal<T> instance already
1753 // thread and notifies them when the thread exits. A ThreadLocal instance is
1762 // Invoked when a ThreadLocal instance is destroyed.
1821 // ThreadLocal<int> tl(100); // 100 is the default value for each thread.
1833 // In addition, the default ThreadLocal constructor requires T to have
1839 // ThreadLocal instance are not guaranteed to be destroyed on all platforms.
1841 // Google Test only uses global ThreadLocal objects. That means they
1846 class ThreadLocal : public ThreadLocalBase {
1848 ThreadLocal() : default_factory_(new DefaultValueHolderFactory()) {}
1849 explicit ThreadLocal(const T& value)
1852 ~ThreadLocal() { ThreadLocalRegistry::OnThreadLocalDestroyed(this); }
1918 GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);
2011 // Helpers for ThreadLocal.
2015 // ThreadLocal<T>. Hence the need for class
2030 class ThreadLocal {
2032 ThreadLocal()
2034 explicit ThreadLocal(const T& value)
2038 ~ThreadLocal() {
2124 GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);
2162 class ThreadLocal {
2164 ThreadLocal() : value_() {}
2165 explicit ThreadLocal(const T& value) : value_(value) {}