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

Method beginPthreadJoin

src/processinfo.cpp:559–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559bool
560ProcessInfo::beginPthreadJoin(pthread_t thread)
561{
562 bool res = false;
563
564 _do_lock_tbl();
565 map<pthread_t, pthread_t>::iterator i = _pthreadJoinId.find(thread);
566 if (i == _pthreadJoinId.end()) {
567 _pthreadJoinId[thread] = pthread_self();
568 res = true;
569 }
570 _do_unlock_tbl();
571 return res;
572}
573
574void
575ProcessInfo::clearPthreadJoinState(pthread_t thread)

Callers 3

pthread_joinFunction · 0.80
pthread_tryjoin_npFunction · 0.80
pthread_timedjoin_npFunction · 0.80

Calls 3

endMethod · 0.80
_do_lock_tblFunction · 0.70
_do_unlock_tblFunction · 0.70

Tested by

no test coverage detected