MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / startInThread

Method startInThread

include/openpose/thread/thread.hpp:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132 template<typename TDatums, typename TWorker>
133 void Thread<TDatums, TWorker>::startInThread()
134 {
135 try
136 {
137 opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
138 stopAndJoin();
139 *spIsRunning = true;
140 mThread = {std::thread{&Thread::threadFunction, this}};
141 }
142 catch (const std::exception& e)
143 {
144 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
145 }
146 }
147
148 template<typename TDatums, typename TWorker>
149 void Thread<TDatums, TWorker>::stopAndJoin()

Callers 2

execMethod · 0.80
startMethod · 0.80

Calls 3

whatMethod · 0.80
opLogFunction · 0.50
errorFunction · 0.50

Tested by

no test coverage detected