MCPcopy Create free account
hub / github.com/creatale/node-dv / destroyData

Method destroyData

deps/opencv/modules/core/src/system.cpp:1157–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 1

~TLSStorageMethod · 0.80

Calls 1

deleteDataInstanceMethod · 0.80

Tested by

no test coverage detected