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

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

Collaboration diagram for CEventOwner:

List of all members.


Detailed Description

A class that manages an instance of CEvent in a scope based style.

Public Types

enum  OwnershipType {
  SetAndNothing = 0x10, SetAndReset = 0x12, ResetAndSet = 0x21, ResetAndNothing = 0x20,
  NothingAndSet = 0x01, NothingAndReset = 0x02
}

Public Member Functions

 CEventOwner (CEvent &event, OwnershipType type)
 Create an event owner for the supplied CEvent object with the supplied OwnershipType. Executes the first part of the OwnershipType in the constructor and the second part in the destructor.
 CEventOwner (const CEventOwner &rhs)
 ~CEventOwner ()
CEventOwneroperator= (const CEventOwner &rhs)

Member Enumeration Documentation

Enumerator:
SetAndNothing 
SetAndReset 
ResetAndSet 
ResetAndNothing 
NothingAndSet 
NothingAndReset 


Constructor & Destructor Documentation

CEventOwner ( CEvent &  event,
OwnershipType  type 
)

Create an event owner for the supplied CEvent object with the supplied OwnershipType. Executes the first part of the OwnershipType in the constructor and the second part in the destructor.

CEventOwner ( const CEventOwner rhs  ) 

~CEventOwner (  ) 


Member Function Documentation

CEventOwner& operator= ( const CEventOwner rhs  ) 


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