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

TAddressOrderedMultiLock Class Template Reference
[Win32 Synchronization primitives]

Collaboration diagram for TAddressOrderedMultiLock:

List of all members.


Detailed Description

template<class T>
class JetByteTools::Core::TAddressOrderedMultiLock< T >

A class that allows you to manipulate a collection of instances of locks as if they were a single instance. The idea being that this could be used to enforce an ordering over a sequence of locks that must be acquired together. The locks are stored in the collection keyed by address and then always locked in address ascending order and unlocked in address descending order.


Public Member Functions

 TAddressOrderedMultiLock ()
 T (const TAddressOrderedMultiLock< T > &rhs)
TAddressOrderedMultiLock
< T > & 
operator= (const TAddressOrderedMultiLock< T > &rhs)
 ~TAddressOrderedMultiLock ()
void Add (T &lock)
 Add the supplied instance to the end of the collection of ICriticalSection instances.
void Lock ()
void Unlock ()


Constructor & Destructor Documentation

TAddressOrderedMultiLock (  )  [inline]

~TAddressOrderedMultiLock (  )  [inline]


Member Function Documentation

T ( const TAddressOrderedMultiLock< T > &  rhs  ) 

TAddressOrderedMultiLock<T>& operator= ( const TAddressOrderedMultiLock< T > &  rhs  ) 

void Add ( T &  lock  )  [inline]

Add the supplied instance to the end of the collection of ICriticalSection instances.

void Lock (  )  [inline]

void Unlock (  )  [inline]


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