Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Event Class Reference

List of all members.

Public Member Functions

int destroy ()
 Event (bool broadcast)
int init (bool broadcast)
int signal (u_long id=0)
int wait (u_long id=0, u_long timeout=0)
 ~Event ()

Private Attributes

bool broadcast
EventHandle event
bool initialized

Constructor & Destructor Documentation

Event::Event bool  broadcast  ) 
 

Constructor for the event class.

Parameters:
broadcast If true a signal will be sent to all the waiting threads.

Event::~Event  ) 
 

Destroy the object.


Member Function Documentation

int Event::destroy  ) 
 

Clean all the used resources.

int Event::init bool  broadcast  ) 
 

Initialize an event.

Parameters:
broadcast If true a signal will be sent to all the waiting threads.
Returns:
nonzero on errors.

int Event::signal u_long  id = 0  ) 
 

Signal the event. The behaviour of this message is influenced by the broadcast flag, if this is a broadcast event then the event will be signaled to all the waiting threads otherwise only one thread will be signaled.

Parameters:
id The calling thread id.

int Event::wait u_long  id = 0,
u_long  timeout = 0
 

Wait for the event.

Parameters:
id The calling thread id.
timeout Timeout value in milliseconds.


Member Data Documentation

bool Event::broadcast [private]
 

EventHandle Event::event [private]
 

bool Event::initialized [private]
 


Generated on Thu May 1 12:41:00 2008 for MyServer by  doxygen 1.3.9.1