Lines Matching defs:thread

175 //   GTEST_IS_THREADSAFE    - Google Test is thread-safe.
1462 // Allows a controller thread to pause execution of newly created
1464 // and destroyed in the controller thread.
1478 // be called from the controller thread.
1485 // Blocks until the controller thread notifies. Must be called from a test
1486 // thread.
1537 // Allows a controller thread to pause execution of newly created
1539 // and destroyed in the controller thread.
1578 extern "C" inline void* ThreadFuncWithCLinkage(void* thread) {
1579 static_cast<ThreadWithParamBase*>(thread)->Run();
1590 // ThreadWithParam<int> thread(&ThreadFunc, 5, &thread_can_start);
1606 // The thread can be created only after all fields except thread_
1627 UserThreadFunc* const func_; // User-supplied thread function.
1628 const T param_; // User-supplied parameter to the thread function.
1629 // When non-NULL, used to block execution until the controller thread
1632 bool finished_; // true iff we know that the thread function has finished.
1633 pthread_t thread_; // The native thread object.
1680 // Does nothing if the current thread holds the mutex. Otherwise, crashes
1689 // we assume that 0 is an invalid value for thread IDs.
1734 // Provides a way for a thread to send notifications to a ThreadLocal
1741 // has a value on the current thread.
1752 // Maps a thread to a set of ThreadLocals that have values instantiated on that
1753 // thread and notifies them when the thread exits. A ThreadLocal instance is
1757 // Registers thread_local_instance as having value on the current thread.
1758 // Returns a value that can be used to identify the thread from other threads.
1818 // Implements thread-local storage on Windows systems.
1821 // ThreadLocal<int> tl(100); // 100 is the default value for each thread.
1824 // tl.set(150); // Changes the value for thread 2 only.
1828 // EXPECT_EQ(100, tl.get()); // In thread 1, tl has the original value.
1838 // destroying it. Otherwise, the per-thread objects managed for them by the
1842 // will die after main() has returned. Therefore, no per-thread
1911 const T value_; // The value for each thread.
1937 // the caller's responsibility to ensure that the current thread holds the
1943 // Does nothing if the current thread holds the mutex. Otherwise, crashes
1947 << "The current thread is not holding the mutex @" << this;
1957 // has_owner_ indicates whether the owner_ field below contains a valid thread
1964 pthread_t owner_; // The thread holding the mutex.
2022 // Called by pthread to delete thread-local data stored by
2028 // Implements thread-local storage on pthreads-based systems.
2039 // Destroys the managed object for the current thread, if any.
2068 // When a thread exits, DeleteThreadLocalValue() will be called on
2069 // the object managed for that thread.
2115 const T value_; // The value for each thread.
2120 // A key pthreads uses for looking up per-thread values.
2132 // and thread-local variable). Necessary for compiling Google Test where