I need to rewrite some code that uses the windows WaitforSingleObject function.
myEvent = CreateEvent( NULL, FALSE, FALSE, szName );
WaitForSingleObject( myEvent, nMilliseconds );
I need to wait for an event or for a timeout to happen. Is there an equivalent to this in straight C++??
I am using STL C++11 and not any other libraries such as boost.