1 #ifndef OPENPOSE_THREAD_W_ID_GENERATOR_HPP
2 #define OPENPOSE_THREAD_W_ID_GENERATOR_HPP
11 template<
typename TDatums>
19 void work(TDatums& tDatums);
22 unsigned long long mGlobalCounter;
36 template<
typename TDatums>
42 template<
typename TDatums>
47 template<
typename TDatums>
59 for (
auto& tDatum : *tDatums)
61 if (tDatum.id == std::numeric_limits<unsigned long long>::max())
62 tDatum.id = mGlobalCounter;
64 const auto& tDatum = (*tDatums)[0];
65 if (tDatum.subId == tDatum.subIdMax)
74 catch (
const std::exception& e)
78 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
85 #endif // OPENPOSE_THREAD_W_ID_GENERATOR_HPP
void initializationOnThread()
Definition: wIdGenerator.hpp:43
Definition: wIdGenerator.hpp:12
WIdGenerator()
Definition: wIdGenerator.hpp:37
void work(TDatums &tDatums)
Definition: wIdGenerator.hpp:48
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="")
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)