MCPcopy Create free account
hub / github.com/Singular/Singular / joinThread

Function joinThread

Singular/dyn_modules/systhreads/shared.cc:1469–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469void *joinThread(ThreadState *ts) {
1470 void *result;
1471 pthread_join(ts->id, NULL);
1472 result = ts->result;
1473 thread_lock.lock();
1474 ts->running = false;
1475 ts->active = false;
1476 thread_lock.unlock();
1477 return result;
1478}
1479
1480static InterpreterThread *createInterpreterThread(const char **error) {
1481 ThreadState *ts = newThread(interpreter_thread, NULL, error);

Callers 1

shutdownMethod · 0.85

Calls 7

wrong_num_argsFunction · 0.85
WerrorSFunction · 0.85
joinInterpreterThreadFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45
TypMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected