mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
core(tls): implement releasing of TLS on thread termination
- move TLS & instrumentation code out of core/utility.hpp - (*) TLSData lost .gather() method (to dispose thread data on thread termination) - use TLSDataAccumulator for reliable collecting of thread data - prefer using of .detachData() + .cleanupDetachedData() instead of .gather() method (*) API is broken: replace TLSData => TLSDataAccumulator if gather required (objects disposal on threads termination is not available in accumulator mode)
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
#include "opencl_kernels_core.hpp"
|
||||
#include "umatrix.hpp"
|
||||
|
||||
#include <opencv2/core/utils/tls.hpp>
|
||||
|
||||
///////////////////////////////// UMat implementation ///////////////////////////////
|
||||
|
||||
namespace cv {
|
||||
|
||||
Reference in New Issue
Block a user