Returns the number of active threads, or 0 when there is an error.
| 9819 | |
| 9820 | // Returns the number of active threads, or 0 when there is an error. |
| 9821 | size_t GetThreadCount() { |
| 9822 | const std::string filename = |
| 9823 | (Message() << "/proc/" << getpid() << "/stat").GetString(); |
| 9824 | return ReadProcFileField<size_t>(filename, 19); |
| 9825 | } |
| 9826 | |
| 9827 | #elif GTEST_OS_MAC |
| 9828 |
no test coverage detected