comparison win/dw.c @ 1154:052f01522c53

dw_event_wait() was returning DW_ERROR_TIMEOUT in the wrong state on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 13 Sep 2011 16:58:37 +0000
parents 58b5374355ab
children e6a2f57c0842
comparison
equal deleted inserted replaced
1153:f219ae018dd3 1154:052f01522c53
9254 int rc; 9254 int rc;
9255 9255
9256 rc = WaitForSingleObject(eve, timeout); 9256 rc = WaitForSingleObject(eve, timeout);
9257 if(rc == WAIT_OBJECT_0) 9257 if(rc == WAIT_OBJECT_0)
9258 return DW_ERROR_NONE; 9258 return DW_ERROR_NONE;
9259 if(rc == WAIT_TIMEOUT)
9260 return DW_ERROR_TIMEOUT;
9259 if(rc == WAIT_ABANDONED) 9261 if(rc == WAIT_ABANDONED)
9260 return DW_ERROR_TIMEOUT; 9262 return DW_ERROR_NON_INIT;
9261 return DW_ERROR_GENERAL; 9263 return DW_ERROR_GENERAL;
9262 } 9264 }
9263 9265
9264 /* 9266 /*
9265 * Closes a semaphore created by dw_event_new(). 9267 * Closes a semaphore created by dw_event_new().