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

Function pidVirt_ThreadExit

src/plugin/pid/pid.cpp:296–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static void
297pidVirt_ThreadExit(DmtcpEventData_t *data)
298{
299 /* This thread has finished its execution, do some cleanup on our part.
300 * erasing the original_tid entry from virtualpidtable
301 * FIXME: What if the process gets checkpointed after erase() but before the
302 * thread actually exits?
303 */
304 pid_t tid = VirtualPidTable::gettid();
305 DmtcpMutexLock(&exitedChildTidsLock);
306 exitedChildTids->push_back(tid);
307 DmtcpMutexUnlock(&exitedChildTidsLock);
308}
309
310static void
311pid_event_hook(DmtcpEvent_t event, DmtcpEventData_t *data)

Callers 1

pid_event_hookFunction · 0.85

Calls 3

DmtcpMutexLockFunction · 0.85
DmtcpMutexUnlockFunction · 0.85
gettidFunction · 0.70

Tested by

no test coverage detected