| 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 | } |