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

Function pthread_tryjoin_np

src/threadwrappers.cpp:239–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239extern "C" int
240pthread_tryjoin_np(pthread_t thread, void **retval)
241{
242 int ret;
243
244 if (!ProcessInfo::instance().beginPthreadJoin(thread)) {
245 return EINVAL;
246 }
247
248 {
249 WrapperLock wrapperLock;
250 ret = _real_pthread_tryjoin_np(thread, retval);
251 }
252
253 ProcessInfo::instance().endPthreadJoin(thread);
254 return ret;
255}
256
257extern "C" int
258pthread_timedjoin_np(pthread_t thread,

Callers

nothing calls this directly

Calls 3

_real_pthread_tryjoin_npFunction · 0.85
beginPthreadJoinMethod · 0.80
endPthreadJoinMethod · 0.80

Tested by

no test coverage detected