![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cLocker.h>
Public Member Functions | |
cLockerT (TYPE *pLock, bool bLockSuccess) noexcept | |
cLockerT (TYPE &rLock) | |
~cLockerT () | |
![]() | |
cPtrFacade (cLockableBase *p=nullptr) noexcept | |
cPtrFacade (THIS_t &&ref) noexcept | |
bool | isValidPtr () const noexcept |
cLockableBase ** | get_PPtr () |
cLockableBase * | get_Ptr () const noexcept |
void | put_Ptr (cLockableBase *p) noexcept |
void | ReleasePtr () noexcept |
void | AttachPtr (cLockableBase *p) noexcept |
cLockableBase * | DetachPtr () noexcept |
THIS_t & | operator= (cLockableBase *p) noexcept |
THIS_t & | operator= (THIS_t &&ref) noexcept |
operator cLockableBase * () const noexcept | |
cLockableBase & | get_Ref () const |
cLockableBase & | operator* () const |
cLockableBase * | operator-> () const |
bool | operator! () const noexcept |
Comparison ops. More... | |
bool | operator!= (cLockableBase *p2) const noexcept |
bool | operator== (cLockableBase *p2) const noexcept |
Additional Inherited Members | |
![]() | |
cLockableBase * | m_p |
Pointer to some object of TYPE. More... | |
Lock/Unlock something for the life span of this object. Stack only based guard. Used for: cThreadLockMutex, cThreadLockCrit, cThreadLockFast, ... Might be used for: cDXSurfaceLock, cSemaphoreLock, cWinHeap, cDXMesh, cDXBuffer TYPE must support Unlock() and probably Lock() or be based on cLockableBase* m_p = the lock we are locking. Similar to ATL CCritSecLock
|
inlineexplicitnoexcept |
|
inlineexplicit |
|
inline |