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

Function clock_getcpuclockid

src/plugin/timer/timerwrappers.cpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111extern "C" int
112clock_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
125extern "C" int
126pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id)

Callers 1

mainFunction · 0.50

Calls 1

Tested by

no test coverage detected