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

Method exec

include/openpose/thread/thread.hpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template<typename TDatums, typename TWorker>
117 void Thread<TDatums, TWorker>::exec(const std::shared_ptr<std::atomic<bool>>& isRunningSharedPtr)
118 {
119 try
120 {
121 stopAndJoin();
122 spIsRunning = isRunningSharedPtr;
123 *spIsRunning = true;
124 threadFunction();
125 }
126 catch (const std::exception& e)
127 {
128 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
129 }
130 }
131
132 template<typename TDatums, typename TWorker>
133 void Thread<TDatums, TWorker>::startInThread()

Callers 1

openpose_mainFunction · 0.45

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected