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

Function thread_init

Singular/dyn_modules/systhreads/shared.cc:1368–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366}
1367
1368void thread_init() {
1369 master_lock.lock();
1370 thread_id = ++thread_counter;
1371 master_lock.unlock();
1372#ifdef ENABLE_THREADS
1373 pSingular_initialize_thread();
1374 siInit(global_argv0);
1375#endif
1376 setOption('q');
1377 // setOption('b');
1378}
1379
1380void *thread_main(void *arg) {
1381 ThreadState *ts = (ThreadState *)arg;

Callers 2

thread_mainFunction · 0.85
mainMethod · 0.85

Calls 5

siInitFunction · 0.85
setOptionFunction · 0.70
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected