void _timerThread::post(AsyncEvent *p) { s_acSleep.put(p); s_timer.m_sem.Post(); }
void AsyncEvent::sleep(int ms) { m_v = ms; s_acSleep.put(this); }