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

TLockableObjectConditionalOwner Class Template Reference
[Win32 Synchronization primitivesRAII - Resource Acquisition Is Initialization]

Collaboration diagram for TLockableObjectConditionalOwner:

List of all members.


Detailed Description

template<typename T>
class JetByteTools::Core::TLockableObjectConditionalOwner< T >

A class that may take ownership of a lockable object. That is it calls Lock() in the constructor and Unlock() in the destructor (but only if locked passed as true to the constructor) and can therefore be used to support scope based locking and unlocking of instances of the object.

Public Member Functions

 TLockableObjectConditionalOwner (T &lock, const bool locked=true)
 TLockableObjectConditionalOwner (const TLockableObjectConditionalOwner &rhs)
 ~TLockableObjectConditionalOwner ()
TLockableObjectConditionalOwneroperator= (const TLockableObjectConditionalOwner &rhs)
void Unlock ()

Constructor & Destructor Documentation

TLockableObjectConditionalOwner ( T &  lock,
const bool  locked = true 
) [inline, explicit]


Member Function Documentation

void Unlock (  )  [inline]


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