Skip to content
Snippets Groups Projects
Commit 8f229935 authored by deuce's avatar deuce
Browse files

Return timeout, not success on Win32 if a timeout occurs.

parent 2169737e
No related branches found
No related tags found
No related merge requests found
...@@ -315,7 +315,8 @@ tODResult ODInQueueGetNextEvent(tODInQueueHandle hInQueue, ...@@ -315,7 +315,8 @@ tODResult ODInQueueGetNextEvent(tODInQueueHandle hInQueue,
/* this thread to be blocked until an event is added to the queue, if it */ /* this thread to be blocked until an event is added to the queue, if it */
/* is currently empty. */ /* is currently empty. */
ODSemaphoreDown(pInputQueueInfo->hItemCountSemaphore, Timeout); if(ODSemaphoreDown(pInputQueueInfo->hItemCountSemaphore, Timeout)==kODRCTimeout)
return(kODRCTimeout);
#else /* !OD_MULTITHREADED */ #else /* !OD_MULTITHREADED */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment