The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IReentrantLockableObject Class Reference
[Win32 Synchronization primitivesInterfaces]

Inheritance diagram for IReentrantLockableObject:
Collaboration diagram for IReentrantLockableObject:

List of all members.


Detailed Description

An interface onto objects that can be locked and where the same thread is able to call Lock() multiple times successfully and where each call to Lock() needs to be balanced by a corresponding call to Unlock() to unlock the object.

Public Types

typedef
TLockableObjectOwner
< IReentrantLockableObject
Owner
typedef
TLockableObjectConditionalOwner
< IReentrantLockableObject
ConditionalOwner
typedef
TReentrantLockableObjectPotentialOwner
< IReentrantLockableObject
PotentialOwner

Public Member Functions

 ~IReentrantLockableObject () override
 Instances of this interface can be deleted by their users.
virtual bool TryLock ()=0
 Try to lock the lockable object, returns true if successful and false if the lock is already locked.
virtual void Lock ()=0
 Lock the lockable object.
virtual void Unlock ()=0
 Unlock the lockable object.

Member Typedef Documentation


Constructor & Destructor Documentation

~IReentrantLockableObject (  )  [override]

Instances of this interface can be deleted by their users.


Member Function Documentation

virtual bool TryLock (  )  [pure virtual, inherited]


Generated on Sun Sep 12 19:08:37 2021 for The Server Framework - v7.4 by doxygen 1.5.3