Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/base/platform/condition-variable.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698