OpenCV 4.10.0-dev
Open Source Computer Vision
|
TLS data accumulator with gathering methods. More...
#include <opencv2/core/utils/tls.hpp>
Public Member Functions | |
TLSDataAccumulator () | |
~TLSDataAccumulator () | |
void | cleanup () |
Release associated thread data. | |
void | cleanupDetachedData () |
Release associated thread data returned by detachData() call. | |
std::vector< T * > & | detachData () |
Get and detach data from all threads. | |
void | gather (std::vector< T * > &data) const |
Get data from all threads. | |
void | release () |
Release associated thread data and free TLS key. | |
Public Member Functions inherited from cv::TLSData< T > | |
TLSData () | |
~TLSData () | |
void | cleanup () |
Release associated thread data. | |
T * | get () const |
Get data associated with key. | |
T & | getRef () const |
Get data associated with key. | |
Protected Member Functions | |
void | _cleanupDetachedData () |
void | _cleanupTerminatedData () |
virtual void * | createDataInstance () const CV_OVERRIDE |
Wrapper to allocate data by template. | |
virtual void | deleteDataInstance (void *pData) const CV_OVERRIDE |
Wrapper to release data by template. | |
Protected Member Functions inherited from cv::TLSData< T > | |
Protected Member Functions inherited from cv::TLSDataContainer | |
TLSDataContainer () | |
virtual | ~TLSDataContainer () |
void | detachData (std::vector< void * > &data) |
get TLS data and detach all data from threads (similar to cleanup() call) | |
void | gatherData (std::vector< void * > &data) const |
void * | getData () const |
void | release () |
void | cleanup () |
Release created TLS data container objects. It is similar to release() call, but it keeps TLS container valid. | |
TLS data accumulator with gathering methods.
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
Release associated thread data.
|
inline |
Release associated thread data returned by detachData() call.
|
inlineprotectedvirtual |
Wrapper to allocate data by template.
Reimplemented from cv::TLSData< T >.
|
inlineprotectedvirtual |
Wrapper to release data by template.
Reimplemented from cv::TLSData< T >.
|
inline |
Get and detach data from all threads.
Call cleanupDetachedData() when returned vector is not needed anymore.
|
inline |
Get data from all threads.
Lifetime of vector data is valid until next detachData()/cleanup()/release() calls
[out] | data | result buffer (should be empty) |
|
inline |
Release associated thread data and free TLS key.