Loading...
Searching...
No Matches
cv::TLSData< T > Class Template Reference
Simple TLS data class. More...
#include <opencv2/core/utils/tls.hpp>
Inheritance diagram for cv::TLSData< T >:
Public Member Functions | |
| 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 | |
| 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::TLSDataContainer | |
| 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) | |
| 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. | |
Detailed Description
Constructor & Destructor Documentation
◆ TLSData()
template<typename T >
|
inline |
◆ ~TLSData()
template<typename T >
|
inline |
Member Function Documentation
◆ cleanup()
template<typename T >
|
inline |
Release associated thread data.
◆ createDataInstance()
template<typename T >
|
inlineprotectedvirtual |
Wrapper to allocate data by template.
Implements cv::TLSDataContainer.
Reimplemented in cv::TLSDataAccumulator< T >, and cv::TLSDataAccumulator< cv::instr::NodeDataTls >.
◆ deleteDataInstance()
template<typename T >
|
inlineprotectedvirtual |
Wrapper to release data by template.
Implements cv::TLSDataContainer.
Reimplemented in cv::TLSDataAccumulator< T >, and cv::TLSDataAccumulator< cv::instr::NodeDataTls >.
◆ get()
template<typename T >
|
inline |
Get data associated with key.
◆ getRef()
template<typename T >
|
inline |
Get data associated with key.
The documentation for this class was generated from the following file:
- opencv2/core/utils/tls.hpp
Protected Member Functions inherited from
1.9.6