1 #ifndef OPENPOSE_THREAD_WORKER_HPP
2 #define OPENPOSE_THREAD_WORKER_HPP
8 template<
typename TDatums>
40 virtual void work(TDatums& tDatums) = 0;
56 template<
typename TDatums>
62 template<
typename TDatums>
67 template<
typename TDatums>
72 this->initializationOnThread();
74 catch (
const std::exception& e)
77 errorWorker(e.what(), __LINE__, __FUNCTION__, __FILE__);
81 template<
typename TDatums>
90 catch (
const std::exception& e)
93 errorWorker(e.what(), __LINE__, __FUNCTION__, __FILE__);
void initializationOnThreadNoException()
bool checkAndWork(TDatums &tDatums)
virtual void work(TDatums &tDatums)=0
virtual void initializationOnThread()=0
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
OP_API void errorWorker(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")