if m_extTimeout is 0, WaitMsec tests the state of the condition variable and return immediately. I don't see anything wrong with this behavior.