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

Function make_timer

contrib/ckpttimer/ckpttimer.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static timer_t
106make_timer()
107{
108 timer_t timerid = 0;
109 struct sigevent sev;
110
111 setup_handler();
112
113 sev.sigev_notify = SIGEV_SIGNAL;
114 sev.sigev_signo = g_sig_num;
115 sev.sigev_value.sival_ptr = &timerid;
116 if (timer_create(CLOCKID, &sev, &timerid) == -1) {
117 handleError("timer_create");
118 }
119
120 return timerid;
121}
122
123static void
124start_stop_timer(timer_t timerid, long interval, bool start)

Callers 1

ckpttimer_event_hookFunction · 0.85

Calls 2

setup_handlerFunction · 0.85
timer_createFunction · 0.50

Tested by

no test coverage detected