Home | History | Annotate | Download | only in gtest

Lines Matching refs:ThreadLocal

241 //   Mutex, MutexLock, ThreadLocal, GetThreadCount()
2533 // Helpers for ThreadLocal.
2537 // ThreadLocal<T>. Hence the need for class
2553 // ThreadLocal<int> tl(100); // 100 is the default value for each thread.
2565 // In addition, the default ThreadLocal constructor requires T to have
2568 // An object managed for a thread by a ThreadLocal instance is deleted
2569 // when the thread exits. Or, if the ThreadLocal instance dies in
2570 // that thread, when the ThreadLocal dies. It's the user's
2571 // responsibility to ensure that all other threads using a ThreadLocal
2575 // Google Test only uses global ThreadLocal objects. That means they
2580 class ThreadLocal {
2582 ThreadLocal() : key_(CreateKey()),
2584 explicit ThreadLocal(const T& value) : key_(CreateKey()),
2587 ~ThreadLocal() {
2640 GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);
2673 class ThreadLocal {
2675 ThreadLocal() : value_() {}
2676 explicit ThreadLocal(const T& value) : value_(value) {}