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

Method start

include/openpose/thread/threadManager.hpp:207–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 template<typename TDatums, typename TWorker, typename TQueue>
207 void ThreadManager<TDatums, TWorker, TQueue>::start()
208 {
209 try
210 {
211 opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
212 // Set threads
213 multisetToThreads();
214 // Start threads
215 for (auto& thread : mThreads)
216 thread->startInThread();
217 opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__);
218 }
219 catch (const std::exception& e)
220 {
221 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
222 }
223 }
224
225 template<typename TDatums, typename TWorker, typename TQueue>
226 void ThreadManager<TDatums, TWorker, TQueue>::stop()

Callers

nothing calls this directly

Calls 4

startInThreadMethod · 0.80
whatMethod · 0.80
opLogFunction · 0.50
errorFunction · 0.50

Tested by

no test coverage detected