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

Method on_pthread_getcpuclockid

src/plugin/timer/timerlist.cpp:321–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321clockid_t
322TimerList::on_pthread_getcpuclockid(pthread_t thread, clockid_t realId)
323{
324 _do_lock_tbl();
325 _clockPthreadList[realId] = thread;
326 if (_clockVirtIdTable.size() > 800) {
327 removeStaleClockIds();
328 }
329 clockid_t virtId = -1;
330 JASSERT(_clockVirtIdTable.getNewVirtualId(&virtId));
331 _clockVirtIdTable.updateMapping(virtId, realId);
332 _do_unlock_tbl();
333 return virtId;
334}

Callers 1

pthread_getcpuclockidFunction · 0.80

Calls 5

_do_lock_tblFunction · 0.70
_do_unlock_tblFunction · 0.70
sizeMethod · 0.45
getNewVirtualIdMethod · 0.45
updateMappingMethod · 0.45

Tested by

no test coverage detected