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

Function pthread_getcpuclockid

src/plugin/timer/timerwrappers.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125extern "C" int
126pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id)
127{
128 // We need to acquire an exclusive lock here because the corresponding Pid
129 // plugin wrapper requires an exclusive lock.
130 WrapperLockExcl wrapperLock;
131 clockid_t realId;
132 int ret = _real_pthread_getcpuclockid(thread, &realId);
133 if (ret == 0) {
134 *clock_id = TimerList::instance().on_pthread_getcpuclockid(thread, realId);
135 }
136 return ret;
137}
138
139extern "C" int
140clock_getres(clockid_t clk_id, struct timespec *res)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected