S>>while( ::WaitForSingleObject(m_hStop, 10) != WAIT_OBJECT_0 ) { S>> sleep(300000); S>> DoSomething(); S>>} S>>