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

Method checkThread

src/openpose/face/faceExtractorNet.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected