Changeset 32969 in vbox
- Timestamp:
- Oct 7, 2010 9:41:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/semeventmulti-posix.cpp
r32966 r32969 47 47 48 48 /******************************************************************************* 49 * Defined Constants And Macros * 50 *******************************************************************************/ 51 /** @def IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK 52 * Set if the platform implements pthread_condattr_setclock(). 53 * Enables the use of the monotonic clock for waiting on condition variables. */ 54 #ifndef IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK 55 /* Linux detection */ 56 # if defined(RT_OS_LINUX) && defined(__USE_XOPEN2K) 57 # include <features.h> 58 # if __GLIBC_PREREQ(2,6) /** @todo figure the exact version where this was added */ 59 # define IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK 60 # endif 61 # endif 62 /** @todo check other platforms */ 63 #endif 64 65 66 /******************************************************************************* 49 67 * Structures and Typedefs * 50 68 *******************************************************************************/ … … 110 128 if (!rc) 111 129 { 112 #if defined(CLOCK_MONOTONIC) \ 113 && ( (defined(RT_OS_LINUX) && defined(__USE_XOPEN2K) /** @todo check ancient glibc versions */) \ 114 || /** @todo check other platforms */ 0) 130 #if defined(CLOCK_MONOTONIC) && defined(IPRT_HAVE_PTHREAD_CONDATTR_SETCLOCK) 115 131 /* ASSUMES RTTimeSystemNanoTS() == RTTimeNanoTS() == clock_gettime(CLOCK_MONOTONIC). */ 116 132 rc = pthread_condattr_setclock(&CondAttr, CLOCK_MONOTONIC);
Note:
See TracChangeset
for help on using the changeset viewer.

