NVDA Helper
In-process and lite high-speed utilities for NVDA
LockableObject Class Reference

A class that provides a locking mechonism on objects. More...

#include <lock.h>

Inheritance diagram for LockableObject:
GlyphTranslatorCache LockableAutoFreeObject displayModelsMap_t< t > displayModel_t

Classes

class  ScopedLock
 

Public Member Functions

 LockableObject ()
 
virtual ~LockableObject ()
 
void acquire ()
 Acquires access (possibly waighting until its free).
 
void release ()
 Releases exclusive access of the object.
 
ScopedLock scopedAcquire ()
 

Detailed Description

A class that provides a locking mechonism on objects.

The lock is reeentrant for the same thread.

Constructor & Destructor Documentation

◆ LockableObject()

LockableObject::LockableObject ( )
inline

◆ ~LockableObject()

virtual LockableObject::~LockableObject ( )
inlinevirtual

Member Function Documentation

◆ acquire()

◆ release()

◆ scopedAcquire()

ScopedLock LockableObject::scopedAcquire ( )
inline

The documentation for this class was generated from the following file: