![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cThreadLockRW.h>
Additional Inherited Members | |
![]() | |
cRefPtr () noexcept | |
cRefPtr (const TYPE *p2) | |
cRefPtr (const THIS_t &ref) | |
cRefPtr (const TYPE *p2, TIMESYSD_t dwWaitMS) | |
~cRefPtr () | |
bool | isValidPtr () const |
bool | isCorruptPtr () const |
void | put_Ptr (TYPE *p) |
void | ReleasePtr () |
int | get_RefCount () const |
THIS_t & | operator= (const TYPE *p2) |
THIS_t & | operator= (const THIS_t &ref) |
operator cRefPtr< _TYPE_2 > () const | |
![]() | |
cPtrFacade (TYPE *p=nullptr) noexcept | |
cPtrFacade (THIS_t &&ref) noexcept | |
bool | isValidPtr () const noexcept |
TYPE ** | get_PPtr () |
TYPE * | get_Ptr () const noexcept |
void | put_Ptr (TYPE *p) noexcept |
void | ReleasePtr () noexcept |
void | AttachPtr (TYPE *p) noexcept |
TYPE * | DetachPtr () noexcept |
THIS_t & | operator= (TYPE *p) noexcept |
THIS_t & | operator= (THIS_t &&ref) noexcept |
operator TYPE * () const noexcept | |
TYPE & | get_Ref () const |
TYPE & | operator* () const |
TYPE * | operator-> () const |
bool | operator! () const noexcept |
Comparison ops. More... | |
bool | operator!= (TYPE *p2) const noexcept |
bool | operator== (TYPE *p2) const noexcept |
![]() | |
cThreadGuardRead (cThreadLockRW &rLock) | |
![]() | |
cLockerT (cThreadLockRW *pLock, bool bLockSuccess) noexcept | |
cLockerT (cThreadLockRW &rLock) | |
~cLockerT () | |
![]() | |
void | IncRefFirst () |
![]() | |
TYPE * | m_p |
Pointer to some object of TYPE. More... | |
I promise to only read from the cThreadLockableRW based object. If another thread is open writing then we must wait. If any thread has other read opens then it's OK. No need to lock an object if 2 threads are just reading it! we MUST record the read action in case a writer (on another thread) comes along.