Home | History | Annotate | Download | only in internal

Lines Matching defs:ThreadLocal

137 //   Mutex, MutexLock, ThreadLocal, GetThreadCount()
1290 // Helpers for ThreadLocal.
1294 // ThreadLocal<T>. Hence the need for class
1310 // ThreadLocal<int> tl(100); // 100 is the default value for each thread.
1322 // In addition, the default ThreadLocal constructor requires T to have
1325 // An object managed for a thread by a ThreadLocal instance is deleted
1326 // when the thread exits. Or, if the ThreadLocal instance dies in
1327 // that thread, when the ThreadLocal dies. It's the user's
1328 // responsibility to ensure that all other threads using a ThreadLocal
1332 // Google Test only uses global ThreadLocal objects. That means they
1337 class ThreadLocal {
1339 ThreadLocal() : key_(CreateKey()),
1341 explicit ThreadLocal(const T& value) : key_(CreateKey()),
1344 ~ThreadLocal() {
1397 GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);
1428 class ThreadLocal {
1430 ThreadLocal() : value_() {}
1431 explicit ThreadLocal(const T& value) : value_(value) {}