OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::utils::optional_shared_lock_guard< _Mutex > Class Template Reference

An optional shared scoped lock (RAII-style locking for shared/reader access). More...

#include <opencv2/core/utils/lock.private.hpp>

Collaboration diagram for cv::utils::optional_shared_lock_guard< _Mutex >:

Public Types

typedef _Mutex Mutex
 

Public Member Functions

 optional_shared_lock_guard (Mutex *m)
 
 ~optional_shared_lock_guard ()
 

Protected Attributes

Mutexmutex_
 

Detailed Description

template<class _Mutex>
class cv::utils::optional_shared_lock_guard< _Mutex >

An optional shared scoped lock (RAII-style locking for shared/reader access).

Doesn't lock if mutex pointer is NULL.

See also
shared_lock_guard

Member Typedef Documentation

◆ Mutex

template<class _Mutex >
typedef _Mutex cv::utils::optional_shared_lock_guard< _Mutex >::Mutex

Constructor & Destructor Documentation

◆ optional_shared_lock_guard()

template<class _Mutex >
cv::utils::optional_shared_lock_guard< _Mutex >::optional_shared_lock_guard ( Mutex m)
inlineexplicit

◆ ~optional_shared_lock_guard()

template<class _Mutex >
cv::utils::optional_shared_lock_guard< _Mutex >::~optional_shared_lock_guard ( )
inline

Member Data Documentation

◆ mutex_

template<class _Mutex >
Mutex* cv::utils::optional_shared_lock_guard< _Mutex >::mutex_
protected

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