#include <Thread.h>
Public Member Functions | |
| void | RegisterThread (void) |
| void | UnregisterThread (void) |
| bool | WaitOrCancel (int timeout) |
| bool | WaitForExit (int timeout=-1) |
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.
| 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.
1.6.3