| 96 | } |
| 97 | |
| 98 | extern "C" int |
| 99 | timer_getoverrun(timer_t timerid) |
| 100 | { |
| 101 | DMTCP_PLUGIN_DISABLE_CKPT(); |
| 102 | timer_t realId = VIRTUAL_TO_REAL_TIMER_ID(timerid); |
| 103 | int ret = _real_timer_getoverrun(realId); |
| 104 | |
| 105 | // If there was some overrun at checkpoint time, add it to the current value |
| 106 | ret += TimerList::instance().getoverrun(timerid); |
| 107 | DMTCP_PLUGIN_ENABLE_CKPT(); |
| 108 | return ret; |
| 109 | } |
| 110 | |
| 111 | extern "C" int |
| 112 | clock_getcpuclockid(pid_t pid, clockid_t *clock_id) |
no test coverage detected