NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
phmap::LockableBaseImpl< MutexType >::ReadLock类 参考

#include <phmap_base.h>

Public 类型

using mutex_type = MutexType
 

Public 成员函数

 ReadLock ()
 
 ReadLock (mutex_type &m)
 
 ReadLock (mutex_type &m, adopt_lock_t) noexcept
 
 ReadLock (mutex_type &m, defer_lock_t) noexcept
 
 ReadLock (mutex_type &m, try_to_lock_t)
 
 ReadLock (ReadLock &&o)
 
ReadLockoperator= (ReadLock &&other)
 
 ~ReadLock ()
 
void lock ()
 
void unlock ()
 
bool try_lock ()
 
bool owns_lock () const noexcept
 
void swap (ReadLock &o) noexcept
 
mutex_typemutex () const noexcept
 

Private 属性

mutex_typem_
 
bool locked_
 

成员类型定义说明

◆ mutex_type

template<class MutexType >
using phmap::LockableBaseImpl< MutexType >::ReadLock::mutex_type = MutexType

构造及析构函数说明

◆ ReadLock() [1/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( )
inline

◆ ReadLock() [2/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( mutex_type m)
inlineexplicit

◆ ReadLock() [3/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( mutex_type m,
adopt_lock_t   
)
inlinenoexcept

◆ ReadLock() [4/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( mutex_type m,
defer_lock_t   
)
inlinenoexcept

◆ ReadLock() [5/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( mutex_type m,
try_to_lock_t   
)
inline

◆ ReadLock() [6/6]

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::ReadLock ( ReadLock &&  o)
inline

◆ ~ReadLock()

template<class MutexType >
phmap::LockableBaseImpl< MutexType >::ReadLock::~ReadLock ( )
inline

成员函数说明

◆ lock()

template<class MutexType >
void phmap::LockableBaseImpl< MutexType >::ReadLock::lock ( )
inline

◆ mutex()

template<class MutexType >
mutex_type * phmap::LockableBaseImpl< MutexType >::ReadLock::mutex ( ) const
inlinenoexcept

◆ operator=()

template<class MutexType >
ReadLock & phmap::LockableBaseImpl< MutexType >::ReadLock::operator= ( ReadLock &&  other)
inline

◆ owns_lock()

template<class MutexType >
bool phmap::LockableBaseImpl< MutexType >::ReadLock::owns_lock ( ) const
inlinenoexcept

◆ swap()

template<class MutexType >
void phmap::LockableBaseImpl< MutexType >::ReadLock::swap ( ReadLock o)
inlinenoexcept

◆ try_lock()

template<class MutexType >
bool phmap::LockableBaseImpl< MutexType >::ReadLock::try_lock ( )
inline

◆ unlock()

template<class MutexType >
void phmap::LockableBaseImpl< MutexType >::ReadLock::unlock ( )
inline

类成员变量说明

◆ locked_

template<class MutexType >
bool phmap::LockableBaseImpl< MutexType >::ReadLock::locked_
private

◆ m_

template<class MutexType >
mutex_type* phmap::LockableBaseImpl< MutexType >::ReadLock::m_
private

该类的文档由以下文件生成: