Lines Matching refs:ThreadLocal
145 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
1426 // Helpers for ThreadLocal.
1430 // ThreadLocal<T>. Hence the need for class
1446 // ThreadLocal<int> tl(100); // 100 is the default value for each thread.
1458 // In addition, the default ThreadLocal constructor requires T to have
1461 // An object managed for a thread by a ThreadLocal instance is deleted
1462 // when the thread exits. Or, if the ThreadLocal instance dies in
1463 // that thread, when the ThreadLocal dies. It's the user's
1464 // responsibility to ensure that all other threads using a ThreadLocal
1468 // Google Test only uses global ThreadLocal objects. That means they
1473 class ThreadLocal {
1475 ThreadLocal() : key_(CreateKey()),
1477 explicit ThreadLocal(const T& value) : key_(CreateKey()),
1480 ~ThreadLocal() {
1533 GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);
1566 class ThreadLocal {
1568 ThreadLocal() : value_() {}
1569 explicit ThreadLocal(const T& value) : value_(value) {}