MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / threadMain

Method threadMain

src/IOThread.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19#ifdef __APPLE__
20void *IOThread::threadMain() {
21 terminated.store(false);
22 stopping.store(false);
23 try {
24 run();
25 }
26 catch (...) {
27 terminated.store(true);
28 stopping.store(true);
29 throw;
30 }
31
32 terminated.store(true);
33 stopping.store(true);
34 return this;
35};
36
37void *IOThread::pthread_helper(void *context) {
38 return ((IOThread *) context)->threadMain();

Callers 1

pthread_helperMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected