Revision: 16504
Author:   [email protected]
Date:     Tue Sep  3 11:38:39 2013 UTC
Log:      We can't use pthread_condattr_setclock() in NaCl.

TEST=cctest/test-condition-variable
[email protected]

Review URL: https://codereview.chromium.org/23494020
http://code.google.com/p/v8/source/detail?r=16504

Modified:
 /branches/bleeding_edge/src/platform/condition-variable.cc

=======================================
--- /branches/bleeding_edge/src/platform/condition-variable.cc Tue Sep 3 07:30:01 2013 UTC +++ /branches/bleeding_edge/src/platform/condition-variable.cc Tue Sep 3 11:38:39 2013 UTC
@@ -41,8 +41,8 @@
   // TODO(bmeurer): The test for V8_LIBRT_NOT_AVAILABLE is a temporary
   // hack to support cross-compiling Chrome for Android in AOSP. Remove
   // this once AOSP is fixed.
-#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || V8_LIBC_GLIBC) && \
-    !V8_LIBRT_NOT_AVAILABLE
+#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
+     (V8_OS_LINUX && V8_LIBC_GLIBC)) && !V8_LIBRT_NOT_AVAILABLE
   // On Free/Net/OpenBSD and Linux with glibc we can change the time
   // source for pthread_cond_timedwait() to use the monotonic clock.
   pthread_condattr_t attr;
@@ -107,8 +107,8 @@
   // TODO(bmeurer): The test for V8_LIBRT_NOT_AVAILABLE is a temporary
   // hack to support cross-compiling Chrome for Android in AOSP. Remove
   // this once AOSP is fixed.
-#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || V8_LIBC_GLIBC) && \
-    !V8_LIBRT_NOT_AVAILABLE
+#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
+     (V8_OS_LINUX && V8_LIBC_GLIBC)) && !V8_LIBRT_NOT_AVAILABLE
   // On Free/Net/OpenBSD and Linux with glibc we can change the time
   // source for pthread_cond_timedwait() to use the monotonic clock.
   result = clock_gettime(CLOCK_MONOTONIC, &ts);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to