- Timestamp:
- Apr 3, 2020 9:20:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/poll.cpp
r82968 r83544 156 156 int rc; 157 157 158 if (RT_UNLIKELY(pThis->cHandles == 0 && cMillies == RT_INDEFINITE_WAIT))159 return VERR_DEADLOCK;160 161 158 /* 162 159 * Check for special case, RTThreadSleep... … … 165 162 if (cHandles == 0) 166 163 { 167 rc = RTThreadSleep(cMillies); 168 if (RT_SUCCESS(rc)) 169 rc = VERR_TIMEOUT; 164 if (RT_LIKELY(cMillies != RT_INDEFINITE_WAIT)) 165 { 166 rc = RTThreadSleep(cMillies); 167 if (RT_SUCCESS(rc)) 168 rc = VERR_TIMEOUT; 169 } 170 else 171 rc = VERR_DEADLOCK; 170 172 return rc; 171 173 }
Note:
See TracChangeset
for help on using the changeset viewer.