SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Core::ScopedLock< MutexT > Struct Template Referencefinal

#include <swcdb/core/MutexLock.h>

Public Member Functions

SWC_CAN_INLINE ScopedLock (MutexT &m) noexcept
 
SWC_CAN_INLINE ~ScopedLock () noexcept
 
 ScopedLock (const ScopedLock &)=delete
 
 ScopedLock (ScopedLock &&)=delete
 
ScopedLockoperator= (const ScopedLock &)=delete
 
ScopedLockoperator= (ScopedLock &&)=delete
 

Public Attributes

MutexT & _m
 

Detailed Description

template<typename MutexT>
struct SWC::Core::ScopedLock< MutexT >

Definition at line 41 of file MutexLock.h.

Constructor & Destructor Documentation

◆ ScopedLock() [1/3]

template<typename MutexT >
SWC_CAN_INLINE SWC::Core::ScopedLock< MutexT >::ScopedLock ( MutexT &  m)
inlinenoexcept

Definition at line 46 of file MutexLock.h.

References SWC::Core::ScopedLock< MutexT >::_m.

◆ ~ScopedLock()

template<typename MutexT >
SWC_CAN_INLINE SWC::Core::ScopedLock< MutexT >::~ScopedLock ( )
inlinenoexcept

Definition at line 55 of file MutexLock.h.

References SWC::Core::ScopedLock< MutexT >::_m.

◆ ScopedLock() [2/3]

template<typename MutexT >
SWC::Core::ScopedLock< MutexT >::ScopedLock ( const ScopedLock< MutexT > &  )
delete

◆ ScopedLock() [3/3]

template<typename MutexT >
SWC::Core::ScopedLock< MutexT >::ScopedLock ( ScopedLock< MutexT > &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

template<typename MutexT >
ScopedLock& SWC::Core::ScopedLock< MutexT >::operator= ( const ScopedLock< MutexT > &  )
delete

◆ operator=() [2/2]

template<typename MutexT >
ScopedLock& SWC::Core::ScopedLock< MutexT >::operator= ( ScopedLock< MutexT > &&  )
delete

Member Data Documentation

◆ _m

template<typename MutexT >
MutexT& SWC::Core::ScopedLock< MutexT >::_m

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