1 #ifndef OPENPOSE_THREAD_WORKER_PRODUCER_HPP
2 #define OPENPOSE_THREAD_WORKER_PRODUCER_HPP
9 template<
typename TDatums>
15 void work(TDatums& tDatums);
29 template<
typename TDatums>
34 template<
typename TDatums>
39 tDatums = std::move(workProducer());
41 catch (
const std::exception& e)
44 errorWorker(e.what(), __LINE__, __FUNCTION__, __FILE__);
void work(TDatums &tDatums)
virtual TDatums workProducer()=0
virtual ~WorkerProducer()
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
OP_API void errorWorker(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")