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

CWaitableCounter::Decrementer Class Reference
[Win32 Synchronization primitivesRAII - Resource Acquisition Is Initialization]

Collaboration diagram for CWaitableCounter::Decrementer:

List of all members.

Detailed Description

A class that provides support for scope based decrementing of a waitable counter. The count is decreased for the life of the Decrementer; that is, it is decremented in the constructor of the and incremented in the destrutor.

Public Member Functions

 Decrementer (CWaitableCounter &counter)
 Decrement the supplied counter.
 Decrementer (const Decrementer &rhs)
 ~Decrementer ()
Decrementeroperator= (const Decrementer &rhs)
void LeaveDecremented ()

Constructor & Destructor Documentation

Decrementer ( CWaitableCounter counter  )  [explicit]

Decrement the supplied counter.

Decrementer ( const Decrementer rhs  ) 

~Decrementer (  ) 

Member Function Documentation

Decrementer& operator= ( const Decrementer rhs  ) 

void LeaveDecremented (  ) 

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