| 9806 | namespace { |
| 9807 | template <typename T> |
| 9808 | T ReadProcFileField(const std::string& filename, int field) { |
| 9809 | std::string dummy; |
| 9810 | std::ifstream file(filename.c_str()); |
| 9811 | while (field-- > 0) { |
| 9812 | file >> dummy; |
| 9813 | } |
| 9814 | T output = 0; |
| 9815 | file >> output; |
| 9816 | return output; |
| 9817 | } |
| 9818 | } // namespace |
| 9819 | |
| 9820 | // Returns the number of active threads, or 0 when there is an error. |
nothing calls this directly
no outgoing calls
no test coverage detected