| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/platform/condition-variable.h" | 5 #include "src/base/platform/condition-variable.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <time.h> | 8 #include <time.h> |
| 9 | 9 |
| 10 #include "src/platform/time.h" | 10 #include "src/base/platform/time.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace base { |
| 14 | 14 |
| 15 #if V8_OS_POSIX | 15 #if V8_OS_POSIX |
| 16 | 16 |
| 17 ConditionVariable::ConditionVariable() { | 17 ConditionVariable::ConditionVariable() { |
| 18 // TODO(bmeurer): The test for V8_LIBRT_NOT_AVAILABLE is a temporary | 18 // TODO(bmeurer): The test for V8_LIBRT_NOT_AVAILABLE is a temporary |
| 19 // hack to support cross-compiling Chrome for Android in AOSP. Remove | 19 // hack to support cross-compiling Chrome for Android in AOSP. Remove |
| 20 // this once AOSP is fixed. | 20 // this once AOSP is fixed. |
| 21 #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \ | 21 #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \ |
| 22 (V8_OS_LINUX && V8_LIBC_GLIBC)) && !V8_LIBRT_NOT_AVAILABLE | 22 (V8_OS_LINUX && V8_LIBC_GLIBC)) && !V8_LIBRT_NOT_AVAILABLE |
| 23 // On Free/Net/OpenBSD and Linux with glibc we can change the time | 23 // On Free/Net/OpenBSD and Linux with glibc we can change the time |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // Release the wait event. | 313 // Release the wait event. |
| 314 ASSERT(!result || event->notified_); | 314 ASSERT(!result || event->notified_); |
| 315 native_handle_.Post(event, result); | 315 native_handle_.Post(event, result); |
| 316 | 316 |
| 317 return result; | 317 return result; |
| 318 } | 318 } |
| 319 | 319 |
| 320 #endif // V8_OS_POSIX | 320 #endif // V8_OS_POSIX |
| 321 | 321 |
| 322 } } // namespace v8::internal | 322 } } // namespace v8::base |
| OLD | NEW |