Arc::ThreadRegistry Class Reference

#include <Thread.h>

Public Member Functions

void RegisterThread (void)
void UnregisterThread (void)
bool WaitOrCancel (int timeout)
bool WaitForExit (int timeout=-1)

Detailed Description

This class is a set of conditions, mutexes, etc. conveniently exposed to monitor running child threads and to wait till they exit. There are no protections against race conditions. So use it carefully.


Member Function Documentation

bool Arc::ThreadRegistry::WaitForExit ( int  timeout = -1  ) 

Wait for registered threads to exit. Leave after timeout miliseconds if failed. Returns true if all registered threads reported their exit.

bool Arc::ThreadRegistry::WaitOrCancel ( int  timeout  ) 

Wait for timeout milliseconds or cancel request. Returns true if cancel request received.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:22 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3