| 123 | } |
| 124 | |
| 125 | extern "C" int |
| 126 | pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id) |
| 127 | { |
| 128 | // We need to acquire an exclusive lock here because the corresponding Pid |
| 129 | // plugin wrapper requires an exclusive lock. |
| 130 | WrapperLockExcl wrapperLock; |
| 131 | clockid_t realId; |
| 132 | int ret = _real_pthread_getcpuclockid(thread, &realId); |
| 133 | if (ret == 0) { |
| 134 | *clock_id = TimerList::instance().on_pthread_getcpuclockid(thread, realId); |
| 135 | } |
| 136 | return ret; |
| 137 | } |
| 138 | |
| 139 | extern "C" int |
| 140 | clock_getres(clockid_t clk_id, struct timespec *res) |
nothing calls this directly
no test coverage detected