| 168 | |
| 169 | |
| 170 | static void* monitorThread(void *t) { |
| 171 | ThreadJiffiesMonitor *thiz = (ThreadJiffiesMonitor *) t; |
| 172 | while (thiz->m_running) { |
| 173 | thiz->run(); |
| 174 | usleep(thiz->m_sampleRateUS); |
| 175 | } |
| 176 | return NULL; |
| 177 | } |
| 178 | |
| 179 | int run() { |
| 180 | m_pStatReader->update(); |