Changeset 22958 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 11, 2009 1:30:27 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r3/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp
r22956 r22958 252 252 if (pTimeout) 253 253 { 254 int64_t u64Diff = u64End - RTTimeSystemNanoTS();255 if ( u64Diff < 1000)254 int64_t i64Diff = u64End - RTTimeSystemNanoTS(); 255 if (i64Diff < 1000) 256 256 { 257 257 rc = VERR_TIMEOUT; 258 258 break; 259 259 } 260 ts.tv_sec = u64Diff / 1000000000;261 ts.tv_nsec = u64Diff % 1000000000;260 ts.tv_sec = i64Diff / 1000000000; 261 ts.tv_nsec = i64Diff % 1000000000; 262 262 } 263 263 } -
trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
r22956 r22958 246 246 if (pTimeout) 247 247 { 248 int64_t u64Diff = u64End - RTTimeSystemNanoTS();249 if ( u64Diff < 1000)248 int64_t i64Diff = u64End - RTTimeSystemNanoTS(); 249 if (i64Diff < 1000) 250 250 return VERR_TIMEOUT; 251 ts.tv_sec = u64Diff / 1000000000;252 ts.tv_nsec = u64Diff % 1000000000;251 ts.tv_sec = i64Diff / 1000000000; 252 ts.tv_nsec = i64Diff % 1000000000; 253 253 } 254 254 long rc = sys_futex(&pThis->iState, FUTEX_WAIT, 1, pTimeout, NULL, 0); -
trunk/src/VBox/Runtime/r3/linux/semmutex-linux.cpp
r22957 r22958 232 232 if (pTimeout) 233 233 { 234 int64_t u64Diff = u64End - RTTimeSystemNanoTS();235 if ( u64Diff < 1000)234 int64_t i64Diff = u64End - RTTimeSystemNanoTS(); 235 if (i64Diff < 1000) 236 236 { 237 237 rc = VERR_TIMEOUT; 238 238 break; 239 239 } 240 ts.tv_sec = u64Diff / 1000000000;241 ts.tv_nsec = u64Diff % 1000000000;240 ts.tv_sec = i64Diff / 1000000000; 241 ts.tv_nsec = i64Diff % 1000000000; 242 242 } 243 243 }
Note:
See TracChangeset
for help on using the changeset viewer.