1 #ifndef OPENPOSE_THREAD_W_ID_GENERATOR_HPP
2 #define OPENPOSE_THREAD_W_ID_GENERATOR_HPP
11 template<
typename TDatums>
21 void work(TDatums& tDatums);
24 unsigned long long mGlobalCounter;
38 template<
typename TDatums>
44 template<
typename TDatums>
49 template<
typename TDatums>
54 template<
typename TDatums>
66 for (
auto& tDatum : *tDatums)
68 if (tDatum.id == std::numeric_limits<unsigned long long>::max())
69 tDatum.id = mGlobalCounter;
71 const auto& tDatum = (*tDatums)[0];
72 if (tDatum.subId == tDatum.subIdMax)
81 catch (
const std::exception& e)
85 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
92 #endif // OPENPOSE_THREAD_W_ID_GENERATOR_HPP
void initializationOnThread()
Definition: wIdGenerator.hpp:50
Definition: wIdGenerator.hpp:12
WIdGenerator()
Definition: wIdGenerator.hpp:39
void work(TDatums &tDatums)
Definition: wIdGenerator.hpp:55
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
virtual ~WIdGenerator()
Definition: wIdGenerator.hpp:45
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
static void timerEnd(const std::string &key)