| 1559 | // cannot be defined with C-linkage we need to define a free C-function to |
| 1560 | // pass into pthread_create(). |
| 1561 | extern "C" inline void* ThreadFuncWithCLinkage(void* thread) { |
| 1562 | static_cast<ThreadWithParamBase*>(thread)->Run(); |
| 1563 | return nullptr; |
| 1564 | } |
| 1565 | |
| 1566 | // Helper class for testing Google Test's multi-threading constructs. |
| 1567 | // To use it, write: |