zeus::TEvent Class Reference

#include <Event.h>

Inheritance diagram for zeus::TEvent:

zeus::TZObject zeus::IZUnknown

List of all members.

Public Types

enum  EWaitType { etBlocked = 0, etActive = 1 }

Public Member Functions

 TEvent (EWaitType eType=etBlocked)
void set ()
void reset ()
bool wait (Float64 dSeconds=10.0)
bool waitInfinite ()

Protected Member Functions

virtual ~TEvent ()


Detailed Description

This class implements a event to signal a thread

Member Enumeration Documentation

Type of the event waiting

Enumerator:
etBlocked  waiting is blocked
etActive  waiting is active (polling)


Constructor & Destructor Documentation

TEvent::TEvent ( EWaitType  eType = etBlocked  ) 

Creates a new event

TEvent::~TEvent (  )  [protected, virtual]

Destroys the event


Member Function Documentation

void zeus::TEvent::set (  )  [inline]

set signal

void zeus::TEvent::reset (  )  [inline]

reset the event

bool TEvent::wait ( Float64  dSeconds = 10.0  ) 

Wait for a signalification

Parameters:
dSeconds : time to wait.

bool TEvent::waitInfinite (  ) 

Wait for a signalification. The time out if infinite


The documentation for this class was generated from the following files:


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:34 2009