MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / timer_settime

Function timer_settime

src/plugin/timer/timerwrappers.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72extern "C" int
73timer_settime(timer_t timerid,
74 int flags,
75 const struct itimerspec *new_value,
76 struct itimerspec *old_value)
77{
78 DMTCP_PLUGIN_DISABLE_CKPT();
79 timer_t realId = VIRTUAL_TO_REAL_TIMER_ID(timerid);
80 int ret = _real_timer_settime(realId, flags, new_value, old_value);
81 if (ret != -1) {
82 TimerList::instance().on_timer_settime(timerid, flags, new_value);
83 }
84 DMTCP_PLUGIN_ENABLE_CKPT();
85 return ret;
86}
87
88extern "C" int
89timer_gettime(timer_t timerid, struct itimerspec *curr_value)

Callers 3

start_stop_timerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

on_timer_settimeMethod · 0.80

Tested by

no test coverage detected