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