auto lock pointer.
Mehr ...
#include <lock_ptr.hpp>
template<typename T, class L = ASSTL_LOCK_DEFAULT>
class std::lock_ptr< T, L >
auto lock pointer.
- Template-Parameter
-
T | pointer type of this lock pointer |
L | lock class |
- Siehe auch
- mutex
-
spinlock
◆ lock_type
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ pointer
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ reference
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ self_type
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ value_type
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ lock_ptr() [1/2]
template<typename T , class L = ASSTL_LOCK_DEFAULT>
constructor make the pointer and auto lock
- Parameter
-
v | Reference to locked area/object |
m | LockType Reference to the using lock hekper class |
54 : m_ptr(const_cast<T*>(&v)), m_lock(&m) {
◆ ~lock_ptr()
template<typename T , class L = ASSTL_LOCK_DEFAULT>
decunstructor and auto unlock the pointer
◆ lock_ptr() [2/2]
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ get() [1/2]
template<typename T , class L = ASSTL_LOCK_DEFAULT>
get the pointer value const
◆ get() [2/2]
template<typename T , class L = ASSTL_LOCK_DEFAULT>
◆ operator*()
template<typename T , class L = ASSTL_LOCK_DEFAULT>
return the reference of the pointer
◆ operator->()
template<typename T , class L = ASSTL_LOCK_DEFAULT>
helper to use this pointer as "native" pointer
◆ operator=()
template<typename T , class L = ASSTL_LOCK_DEFAULT>
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: