NVDA Helper
In-process and lite high-speed utilities for NVDA
|
A class providing both exclusive locking, and reference counting with auto-deletion. More...
#include <lock.h>
Public Member Functions | |
LockableAutoFreeObject () | |
void | acquire () |
Increases the reference count and acquires exclusive access. | |
void | release () |
void | requestDelete () |
Deletes this object if no one has acquired it, or indicates that it should be deleted once it has been released. | |
Protected Member Functions | |
long | incRef () |
long | decRef () |
A class providing both exclusive locking, and reference counting with auto-deletion.
Do not use this in multiple inheritence.
|
inline |
|
inlineprotected |
Referenced by release(), and requestDelete().
|
inline |
Increases the reference count and acquires exclusive access.
References LockableObject::acquire(), and incRef().
Referenced by acquireDisplayModel(), displayModelRemote_getFocusRect(), fake_ScrollWindow(), and fake_ScrollWindowEx().
|
inline |
References decRef(), and LockableObject::release().
Referenced by displayModelRemote_getWindowTextInRect(), fake_BeginPaint(), fake_DrawFocusRect(), fake_FillRect(), fake_PatBlt(), fake_ScriptStringOut(), fake_ScrollWindow(), fake_ScrollWindowEx(), fake_SelectObject(), hookClass_ExtTextOut< charType >::fakeFunction(), hookClass_PolyTextOut< WA_POLYTEXT >::fakeFunction(), hookClass_TextOut< charType >::fakeFunction(), and StretchBlt_helper().
|
inline |
Deletes this object if no one has acquired it, or indicates that it should be deleted once it has been released.
References decRef().
Referenced by displayModelRemote_getWindowTextInRect().