Changeset 22959 in vbox for trunk/src/VBox/Runtime/r3/linux
- Timestamp:
- Sep 11, 2009 1:45:44 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52226
- Location:
- trunk/src/VBox/Runtime/r3/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp
r22958 r22959 30 30 31 31 #include <features.h> 32 #if __GLIBC_PREREQ(2,6) 32 #if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS) 33 33 34 34 /* … … 83 83 /** The futex state variable. 84 84 * 0 means not signalled. 85 * 1 means signalled*/85 1 means signalled. */ 86 86 uint32_t volatile fSignalled; 87 87 /** The number of waiting threads */ … … 195 195 196 196 /* 197 * Convert t imeout value.197 * Convert the timeout value. 198 198 */ 199 199 struct timespec ts; … … 202 202 if (cMillies != RT_INDEFINITE_WAIT) 203 203 { 204 if (!cMillies) 205 return VERR_TIMEOUT; 204 206 ts.tv_sec = cMillies / 1000; 205 207 ts.tv_nsec = (cMillies % 1000) * 1000000; … … 282 284 } 283 285 284 #endif /* glibc < 2.6 */ 286 #endif /* glibc < 2.6 || IPRT_WITH_FUTEX_BASED_SEMS */ 287 -
trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
r22958 r22959 31 31 32 32 #include <features.h> 33 #if __GLIBC_PREREQ(2,6) 33 #if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS) 34 34 35 35 /* … … 86 86 * -1 means signaled. 87 87 * 0 means not signaled, no waiters. 88 * >0 means not signaled, and the value gives the number of waiters.88 * 1 means not signaled and that someone is waiting. 89 89 */ 90 90 int32_t volatile iState; … … 212 212 if (iCur == -1) 213 213 return VINF_SUCCESS; 214 if (!cMillies) 215 return VERR_TIMEOUT; 216 217 /* 218 * Convert timeout value. 214 215 /* 216 * Convert the timeout value. 219 217 */ 220 218 struct timespec ts; … … 223 221 if (cMillies != RT_INDEFINITE_WAIT) 224 222 { 223 if (!cMillies) 224 return VERR_TIMEOUT; 225 225 ts.tv_sec = cMillies / 1000; 226 226 ts.tv_nsec = (cMillies % 1000) * 1000000; … … 300 300 } 301 301 302 #endif /* glibc < 2.6 */ 302 #endif /* glibc < 2.6 || IPRT_WITH_FUTEX_BASED_SEMS */ 303 -
trunk/src/VBox/Runtime/r3/linux/semmutex-linux.cpp
r22958 r22959 38 38 #include <iprt/asm.h> 39 39 #include <iprt/err.h> 40 #include <iprt/time.h> 40 41 #include "internal/magics.h" 41 42 #include "internal/strict.h"
Note:
See TracChangeset
for help on using the changeset viewer.