| 1155 | } |
| 1156 | |
| 1157 | void destroyData(int key, void* data) |
| 1158 | { |
| 1159 | cv::AutoLock lock(mutex_); |
| 1160 | TLSDataContainer* k = tlsContainers_[key]; |
| 1161 | if (!k) |
| 1162 | return; |
| 1163 | try |
| 1164 | { |
| 1165 | k->deleteDataInstance(data); |
| 1166 | } |
| 1167 | catch (...) |
| 1168 | { |
| 1169 | CV_DbgAssert(k == NULL); // Debug this! |
| 1170 | } |
| 1171 | } |
| 1172 | }; |
| 1173 | |
| 1174 | // This is a wrapper function that will ensure 'tlsContainerStorage' is constructed on first use. |
no test coverage detected