Added a cEvent::Wait() with timeout.