![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cThreadLockRef.h>
Public Member Functions | |
cThreadLockableRef (int iStaticRefCount=0) noexcept | |
virtual | ~cThreadLockableRef () |
virtual void | onThreadLockFail (TIMESYSD_t dwWaitMS) |
![]() | |
cRefBase (int iRefCount=0) noexcept | |
virtual | ~cRefBase () |
int | get_RefCount () const noexcept |
HASHCODE_t | get_HashCode () const noexcept |
STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept | |
virtual void | onFinalRelease () |
bool | isValidObj () const noexcept |
STDMETHOD_ (ULONG, AddRef)(void) override | |
STDMETHOD_ (ULONG, Release)(void) override | |
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
void | IncRefCount () |
void | DecRefCount () |
bool | isStaticConstruct () const noexcept |
void | StaticConstruct () |
void | StaticDestruct () |
bool | isDestructing () noexcept |
void | SetDestructing () |
![]() | |
THREADID_t | get_ThreadLockOwner () const |
Additional Inherited Members | |
![]() | |
cLockableBase () noexcept | |
~cLockableBase () | |
LONG | get_LockCount () const |
bool | isLocked () const |
void | IncLockCount () |
LONG | DecLockCount () |
void | Lock () |
LONG | Unlock () |
Base class for a dynamic data structure that may be locked for multi threaded access (cThreadLockCount) and locked for delete/usage (cRefBase). These are fairly cheap and fast.
|
inlinenoexcept |
|
inlinevirtual |
|
inlinevirtual |
a DEBUG trap for locks failing.