#ifndef OPENPOSE_THREAD_THREAD_NO_QUEUE_HPP #define OPENPOSE_THREAD_THREAD_NO_QUEUE_HPP #include #include #include namespace op { template>> class SubThreadNoQueue : public SubThread { public: explicit SubThreadNoQueue(const std::vector& tWorkers); virtual ~SubThreadNoQueue(); bool work(); DELETE_COPY(SubThreadNoQueue); }; } // Implementation namespace op { template SubThreadNoQueue::SubThreadNoQueue(const std::vector& tWorkers) : SubThread{tWorkers} { } template SubThreadNoQueue::~SubThreadNoQueue() { } template bool SubThreadNoQueue::work() { try { TDatums tDatums; return this->workTWorkers(tDatums, true); } catch (const std::exception& e) { error(e.what(), __LINE__, __FUNCTION__, __FILE__); return false; } } COMPILE_TEMPLATE_DATUM(SubThreadNoQueue); } #endif // OPENPOSE_THREAD_THREAD_NO_QUEUE_HPP