| 294 | } |
| 295 | |
| 296 | static void |
| 297 | pidVirt_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 | |
| 310 | static void |
| 311 | pid_event_hook(DmtcpEvent_t event, DmtcpEventData_t *data) |
no test coverage detected