MCPcopy Create free account
hub / github.com/apache/thrift / threadMain

Method threadMain

lib/cpp/src/thrift/concurrency/Thread.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace concurrency {
25
26void Thread::threadMain(std::shared_ptr<Thread> thread) {
27 thread->setState(started);
28 thread->runnable()->run();
29
30 if (thread->getState() != stopping && thread->getState() != stopped) {
31 thread->setState(stopping);
32 }
33}
34
35}
36}

Callers

nothing calls this directly

Calls 4

setStateMethod · 0.80
runnableMethod · 0.80
runMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected