OpenCV  3.4.19
Open Source Computer Vision
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
cv::TLSDataContainer Class Referenceabstract

#include <opencv2/core/utils/tls.hpp>

Inheritance diagram for cv::TLSDataContainer:
cv::TLSData< T > cv::TLSData< cv::instr::NodeDataTls > cv::TLSDataAccumulator< T > cv::TLSDataAccumulator< cv::instr::NodeDataTls >

Public Member Functions

void cleanup ()
 Release created TLS data container objects. It is similar to release() call, but it keeps TLS container valid. More...
 

Public Attributes

int key_
 

Protected Member Functions

 TLSDataContainer ()
 
virtual ~TLSDataContainer ()
 
virtual void * createDataInstance () const =0
 
virtual void deleteDataInstance (void *pData) const =0
 
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 ()
 

Friends

class cv::details::TlsStorage
 

Detailed Description

TLS container base implementation

Don't use directly.

See also
TLSData, TLSDataAccumulator templates

Constructor & Destructor Documentation

◆ TLSDataContainer()

cv::TLSDataContainer::TLSDataContainer ( )
protected

◆ ~TLSDataContainer()

virtual cv::TLSDataContainer::~TLSDataContainer ( )
protectedvirtual

Member Function Documentation

◆ cleanup()

void cv::TLSDataContainer::cleanup ( )

Release created TLS data container objects. It is similar to release() call, but it keeps TLS container valid.

◆ createDataInstance()

virtual void* cv::TLSDataContainer::createDataInstance ( ) const
protectedpure virtual

◆ deleteDataInstance()

virtual void cv::TLSDataContainer::deleteDataInstance ( void *  pData) const
protectedpure virtual

◆ detachData()

void cv::TLSDataContainer::detachData ( std::vector< void *> &  data)
protected

get TLS data and detach all data from threads (similar to cleanup() call)

◆ gatherData()

void cv::TLSDataContainer::gatherData ( std::vector< void *> &  data) const
protected

◆ getData()

void* cv::TLSDataContainer::getData ( ) const
protected

◆ release()

void cv::TLSDataContainer::release ( )
protected

Friends And Related Function Documentation

◆ cv::details::TlsStorage

friend class cv::details::TlsStorage
friend

Member Data Documentation

◆ key_

int cv::TLSDataContainer::key_

The documentation for this class was generated from the following file: