![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cThreadLock.h>
Public Member Functions | |
cThreadLockBase () noexcept | |
bool | isLocked () const noexcept |
THREADID_t | get_ThreadLockOwner () const |
bool | isThreadLockedByCurrent () const noexcept |
Protected Member Functions | |
THREADID_t | __DECL_ALIGN (_SIZEOF_THREADID) m_nLockThreadID |
The thread that has the lock. cThreadId:k_NULL is not locked. More... | |
![]() | |
cLockableBase () noexcept | |
~cLockableBase () | |
LONG | get_LockCount () const |
bool | isLocked () const |
void | IncLockCount () |
LONG | DecLockCount () |
void | Lock () |
LONG | Unlock () |
![]() | |
cNonCopyable () noexcept | |
Force the use of Factory creation via protected constructor. More... | |
~cNonCopyable () noexcept | |
ASSUME sizeof(THREADID_t) <= sizeof(UINT_PTR) _SIZEOF_PTR for __DECL_ALIGN.
|
inlinenoexcept |
|
protected |
The thread that has the lock. cThreadId:k_NULL is not locked.
|
inline |
|
inlinenoexcept |
Only thread safe way to test this is to look at m_nLockThreadID, NOT m_nLockCount
|
inlinenoexcept |