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

Method checkThread

src/openpose/pose/poseExtractorNet.cpp:380–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378 }
379
380 void PoseExtractorNet::checkThread() const
381 {
382 try
383 {
384 if (mThreadId != std::this_thread::get_id())
385 error("The CPU/GPU pointer data cannot be accessed from a different thread.",
386 __LINE__, __FUNCTION__, __FILE__);
387 }
388 catch (const std::exception& e)
389 {
390 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
391 }
392 }
393}

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected