- Timestamp:
- Oct 8, 2014 3:58:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/semeventwait-r0drv-solaris.h
r44528 r52996 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 57 57 union 58 58 { 59 /** The timeout ( abs lbolt) when fHighRes is false. */59 /** The timeout (in ticks) when fHighRes is false. */ 60 60 clock_t lTimeout; 61 61 } u; … … 108 108 { 109 109 if (fFlags & RTSEMWAIT_FLAGS_MILLISECS) 110 uTimeout = uTimeout < UINT64_MAX / UINT32_C(1000000) * UINT32_C(1000000)111 ? uTimeout * UINT32_C(1000000)110 uTimeout = uTimeout < UINT64_MAX / RT_NS_1MS 111 ? uTimeout * RT_NS_1MS 112 112 : UINT64_MAX; 113 113 if (uTimeout == UINT64_MAX) … … 156 156 else 157 157 { 158 pWait->u.lTimeout = d di_get_lbolt() + cTicks;158 pWait->u.lTimeout = drv_usectohz(uTimeout / RT_NS_1US_64); 159 159 pWait->fHighRes = false; 160 160 }
Note:
See TracChangeset
for help on using the changeset viewer.