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

Method refresh

src/plugin/pid/virtualpidtable.cpp:143–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void
144VirtualPidTable::refresh()
145{
146 id_iterator i;
147 id_iterator next;
148 pid_t _real_pid = _real_getpid();
149
150 JASSERT(getpid() != -1);
151
152 _do_lock_tbl();
153 for (i = _idMapTable.begin(), next = i; i != _idMapTable.end(); i = next) {
154 next++;
155 if (isIdCreatedByCurrentProcess(i->first)
156 && _real_tgkill(_real_pid, i->second, 0) == -1) {
157 _idMapTable.erase(i);
158 }
159 }
160 _do_unlock_tbl();
161}
162
163pid_t
164VirtualPidTable::getNewVirtualTid()

Callers 1

pidVirt_PostExecFunction · 0.80

Calls 8

_real_tgkillFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
eraseMethod · 0.80
_real_getpidFunction · 0.70
getpidFunction · 0.70
_do_lock_tblFunction · 0.50
_do_unlock_tblFunction · 0.50

Tested by

no test coverage detected