OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::utils::optional_lock_guard< _Mutex > Class Template Reference

An optional simple scoped lock (RAII-style locking for exclusive/write access). More...

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

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

Public Types

typedef _Mutex Mutex
 

Public Member Functions

 optional_lock_guard (Mutex *m)
 
 ~optional_lock_guard ()
 

Detailed Description

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

An optional simple scoped lock (RAII-style locking for exclusive/write access).

Doesn't lock if mutex pointer is NULL.

See also
lock_guard

Member Typedef Documentation

◆ Mutex

template<class _Mutex >
_Mutex cv::utils::optional_lock_guard< _Mutex >::Mutex

Constructor & Destructor Documentation

◆ optional_lock_guard()

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

◆ ~optional_lock_guard()

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

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