template <typename T>
class ThreadWithParam
Defined at line 1319 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
Helper class for testing Google Test's multi-threading constructs.
To use it, write:
void ThreadFunc(int param) { /* Do things with param */ }
Notification thread_can_start;
...
// The thread_can_start parameter is optional; you can supply NULL.
ThreadWithParam
<int
> thread(
&ThreadFunc
, 5,
&thread
_can_start);
thread_can_start.Notify();
These classes are only for testing Google Test's own constructs. Do
not use them in user tests, either directly or indirectly.
Public Methods
void ThreadWithParam<T> (UserThreadFunc * func, T param, Notification * thread_can_start)
Defined at line 1323 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
void ~ThreadWithParam<T> ()
Defined at line 1334 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
void Join ()
Defined at line 1336 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
void Run ()
Defined at line 1343 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h