OpenCV
3.4.19
Open Source Computer Vision
|
Simple TLS data class. More...
#include <opencv2/core/utils/tls.hpp>
Public Member Functions | |
TLSData () | |
~TLSData () | |
void | cleanup () |
Release associated thread data. More... | |
T * | get () const |
Get data associated with key. More... | |
T & | getRef () const |
Get data associated with key. More... | |
Protected Member Functions | |
virtual void * | createDataInstance () const CV_OVERRIDE |
Wrapper to allocate data by template. More... | |
virtual void | deleteDataInstance (void *pData) const CV_OVERRIDE |
Wrapper to release data by template. More... | |
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) More... | |
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. More... | |
Additional Inherited Members | |
Protected Attributes inherited from cv::TLSDataContainer | |
int | key_ |
|
inline |
|
inline |
|
inline |
Release associated thread data.
|
inlineprotectedvirtual |
Wrapper to allocate data by template.
Implements cv::TLSDataContainer.
Reimplemented in cv::TLSDataAccumulator< T >, and cv::TLSDataAccumulator< cv::instr::NodeDataTls >.
|
inlineprotectedvirtual |
Wrapper to release data by template.
Implements cv::TLSDataContainer.
Reimplemented in cv::TLSDataAccumulator< T >, and cv::TLSDataAccumulator< cv::instr::NodeDataTls >.
|
inline |
Get data associated with key.
|
inline |
Get data associated with key.