Changeset 33381 in vbox
- Timestamp:
- Oct 24, 2010 1:48:39 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66967
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/sleepqueue-r0drv-freebsd.h
r33376 r33381 110 110 if (u64Now >= uTimeout) 111 111 return VERR_TIMEOUT; 112 113 uTimeout -= u64Now; /* Get a relative value. */ 112 114 } 113 115 } … … 117 119 { 118 120 pWait->fIndefinite = false; 121 122 #if 0 123 struct timeval tv; 124 125 tv.tv_sec = uTimeout / UINT64_C(1000000000); 126 tv.tv_usec = (uTimeout % UINT64_C(1000000000)) / UINT64_C(1000); 127 128 pWait->iTimeout = tvtohz(&tv); 129 #else 119 130 uint64_t cTicks = ASMMultU64ByU32DivByU32(uTimeout, hz, UINT32_C(1000000000)); 120 131 if (cTicks >= INT_MAX) … … 122 133 else 123 134 pWait->iTimeout = (int)cTicks; 135 #endif 124 136 } 125 137
Note:
See TracChangeset
for help on using the changeset viewer.