| 109 | } |
| 110 | |
| 111 | extern "C" int |
| 112 | clock_getcpuclockid(pid_t pid, clockid_t *clock_id) |
| 113 | { |
| 114 | clockid_t realId; |
| 115 | |
| 116 | DMTCP_PLUGIN_DISABLE_CKPT(); |
| 117 | int ret = _real_clock_getcpuclockid(pid, &realId); |
| 118 | if (ret == 0) { |
| 119 | *clock_id = REAL_TO_VIRTUAL_CLOCK_ID(pid, realId); |
| 120 | } |
| 121 | DMTCP_PLUGIN_ENABLE_CKPT(); |
| 122 | return ret; |
| 123 | } |
| 124 | |
| 125 | extern "C" int |
| 126 | pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id) |
no test coverage detected