MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / checkThread

Method checkThread

src/openpose/hand/handExtractorNet.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 void HandExtractorNet::checkThread() const
119 {
120 try
121 {
122 if (mThreadId != std::this_thread::get_id())
123 error("The CPU/GPU pointer data cannot be accessed from a different thread.",
124 __LINE__, __FUNCTION__, __FILE__);
125 }
126 catch (const std::exception& e)
127 {
128 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
129 }
130 }
131}

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected