SPH
Public Member Functions | List of all members
Detail::LockingControlBlock< T, TMutex > Class Template Reference

#include <LockingPtr.h>

Inheritance diagram for Detail::LockingControlBlock< T, TMutex >:
Detail::ControlBlock< T > Detail::ControlBlockHolder Polymorphic

Public Member Functions

 LockingControlBlock (T *ptr)
 
void lock ()
 
void unlock ()
 
bool isLocked () const
 
- Public Member Functions inherited from Detail::ControlBlock< T >
 ControlBlock (T *ptr)
 
virtual INLINE void * getPtr () override
 
virtual void deletePtr () override
 
- Public Member Functions inherited from Detail::ControlBlockHolder
INLINE ControlBlockHolder ()
 
INLINE int increaseUseCnt ()
 
INLINE int getUseCount () const
 
INLINE int increaseWeakCnt ()
 
INLINE bool increaseUseCntIfNonzero ()
 
INLINE void decreaseUseCnt ()
 
INLINE void decreaseWeakCnt ()
 
INLINE void deleteBlock ()
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

template<typename T, typename TMutex = std::mutex>
class Detail::LockingControlBlock< T, TMutex >

Definition at line 17 of file LockingPtr.h.

Constructor & Destructor Documentation

◆ LockingControlBlock()

template<typename T , typename TMutex = std::mutex>
Detail::LockingControlBlock< T, TMutex >::LockingControlBlock ( T *  ptr)
inline

Definition at line 23 of file LockingPtr.h.

Member Function Documentation

◆ isLocked()

template<typename T , typename TMutex = std::mutex>
bool Detail::LockingControlBlock< T, TMutex >::isLocked ( ) const
inline

Definition at line 36 of file LockingPtr.h.

◆ lock()

template<typename T , typename TMutex = std::mutex>
void Detail::LockingControlBlock< T, TMutex >::lock ( )
inline

Definition at line 26 of file LockingPtr.h.

◆ unlock()

template<typename T , typename TMutex = std::mutex>
void Detail::LockingControlBlock< T, TMutex >::unlock ( )
inline

Definition at line 31 of file LockingPtr.h.


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