Download Source Code

TAutoResetEvent< T > Class Template Reference

Automatic event reset by calling ResetEvent() on destruction. More...

#include <TMem.h>

List of all members.

Public Member Functions

 TAutoResetEvent (T hEvent)
 Wraps the specified event.
 ~TAutoResetEvent ()
 Destructor.
void Reset ()
 Resets the event and detaches.
T & operator * ()
 Returns a reference to the event.
T * operator & ()
 Returns a pointer to the event.


Detailed Description

template<class T>
class TAutoResetEvent< T >

Automatic event reset by calling ResetEvent() on destruction.

Provides automatic event reset by calling ResetEvent() on destruction


Constructor & Destructor Documentation

template<class T>
TAutoResetEvent< T >::TAutoResetEvent hEvent  )  [inline]
 

Wraps the specified event.

Parameters:
[in] hEvent - Windows event handle


The documentation for this class was generated from the following file:
  • inc/TMem.h
Copyright Robert Umbehant
This documentation is covered by the LGPL