Changeset 25724 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- Jan 11, 2010 2:45:34 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56467
- Location:
- trunk/src/VBox/Runtime/generic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/RTSemEventMultiWait-generic.cpp
r25381 r25724 43 43 44 44 #undef RTSemEventMultiWait /* undo debug mapping */ 45 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI EventSem, unsignedcMillies)45 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI EventSem, RTMSINTERVAL cMillies) 46 46 { 47 47 int rc; … … 62 62 if (u64Elapsed >= cMillies) 63 63 return VERR_TIMEOUT; 64 rc = RTSemEventMultiWaitNoResume(EventSem, cMillies - ( unsigned)u64Elapsed);64 rc = RTSemEventMultiWaitNoResume(EventSem, cMillies - (RTMSINTERVAL)u64Elapsed); 65 65 } while (rc == VERR_INTERRUPTED); 66 66 } -
trunk/src/VBox/Runtime/generic/RTSemEventWait-generic.cpp
r25381 r25724 43 43 44 44 #undef RTSemEventWait /* undo debug mapping */ 45 RTDECL(int) RTSemEventWait(RTSEMEVENT EventSem, unsignedcMillies)45 RTDECL(int) RTSemEventWait(RTSEMEVENT EventSem, RTMSINTERVAL cMillies) 46 46 { 47 47 int rc; … … 62 62 if (u64Elapsed >= cMillies) 63 63 return VERR_TIMEOUT; 64 rc = RTSemEventWaitNoResume(EventSem, cMillies - ( unsigned)u64Elapsed);64 rc = RTSemEventWaitNoResume(EventSem, cMillies - (RTMSINTERVAL)u64Elapsed); 65 65 } while (rc == VERR_INTERRUPTED); 66 66 } -
trunk/src/VBox/Runtime/generic/RTSemMutexRequest-generic.cpp
r25381 r25724 43 43 44 44 #undef RTSemMutexRequest /* undo debug mapping */ 45 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX Mutex, unsignedcMillies)45 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX Mutex, RTMSINTERVAL cMillies) 46 46 { 47 47 int rc; … … 62 62 if (u64Elapsed >= cMillies) 63 63 return VERR_TIMEOUT; 64 rc = RTSemMutexRequestNoResume(Mutex, cMillies - ( unsigned)u64Elapsed);64 rc = RTSemMutexRequestNoResume(Mutex, cMillies - (RTMSINTERVAL)u64Elapsed); 65 65 } while (rc == VERR_INTERRUPTED); 66 66 } -
trunk/src/VBox/Runtime/generic/RTSemMutexRequestDebug-generic.cpp
r25381 r25724 43 43 44 44 45 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX Mutex, unsignedcMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)45 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX Mutex, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) 46 46 { 47 47 int rc; … … 62 62 if (u64Elapsed >= cMillies) 63 63 return VERR_TIMEOUT; 64 rc = RTSemMutexRequestNoResumeDebug(Mutex, cMillies - ( unsigned)u64Elapsed, uId, RT_SRC_POS_ARGS);64 rc = RTSemMutexRequestNoResumeDebug(Mutex, cMillies - (RTMSINTERVAL)u64Elapsed, uId, RT_SRC_POS_ARGS); 65 65 } while (rc == VERR_INTERRUPTED); 66 66 } -
trunk/src/VBox/Runtime/generic/semrw-generic.cpp
r25723 r25724 263 263 AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE); 264 264 265 unsignedcMilliesInitial = cMillies;265 RTMSINTERVAL cMilliesInitial = cMillies; 266 266 uint64_t tsStart = 0; 267 267 if (cMillies != RT_INDEFINITE_WAIT && cMillies != 0) … … 353 353 tsDelta /= 1000000; 354 354 if ((uint64_t)tsDelta < cMilliesInitial) 355 cMilliesInitial = ( unsigned)tsDelta;355 cMilliesInitial = (RTMSINTERVAL)tsDelta; 356 356 else 357 357 cMilliesInitial = 1; … … 555 555 * Validate handle. 556 556 */ 557 struct RTSEMRWINTERNAL *pThis = hRWSem;557 struct RTSEMRWINTERNAL *pThis = hRWSem; 558 558 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 559 559 AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE); 560 560 561 unsignedcMilliesInitial = cMillies;562 uint64_t tsStart= 0;561 RTMSINTERVAL cMilliesInitial = cMillies; 562 uint64_t tsStart = 0; 563 563 if (cMillies != RT_INDEFINITE_WAIT && cMillies != 0) 564 564 tsStart = RTTimeNanoTS(); … … 643 643 tsDelta /= 1000000; 644 644 if ((uint64_t)tsDelta < cMilliesInitial) 645 cMilliesInitial = ( unsigned)tsDelta;645 cMilliesInitial = (RTMSINTERVAL)tsDelta; 646 646 else 647 647 cMilliesInitial = 1;
Note:
See TracChangeset
for help on using the changeset viewer.