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

Unified Diff: src/base/platform/condition-variable.h

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, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/base/platform/condition-variable.h
diff --git a/src/platform/condition-variable.h b/src/base/platform/condition-variable.h
similarity index 90%
rename from src/platform/condition-variable.h
rename to src/base/platform/condition-variable.h
index 4e8724cd27380279043a43f5c8267be04a727ed0..9855970eba6c55b22fc69f70de3cc52c154890de 100644
--- a/src/platform/condition-variable.h
+++ b/src/base/platform/condition-variable.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_PLATFORM_CONDITION_VARIABLE_H_
-#define V8_PLATFORM_CONDITION_VARIABLE_H_
+#ifndef V8_BASE_PLATFORM_CONDITION_VARIABLE_H_
+#define V8_BASE_PLATFORM_CONDITION_VARIABLE_H_
#include "src/base/lazy-instance.h"
-#include "src/platform/mutex.h"
+#include "src/base/platform/mutex.h"
namespace v8 {
-namespace internal {
+namespace base {
// Forward declarations.
class ConditionVariableEvent;
@@ -107,12 +107,12 @@ class ConditionVariable V8_FINAL {
// LockGuard<Mutex> lock_guard(&my_mutex);
// my_condvar.Pointer()->Wait(&my_mutex);
// }
-typedef base::LazyStaticInstance<
- ConditionVariable, base::DefaultConstructTrait<ConditionVariable>,
- base::ThreadSafeInitOnceTrait>::type LazyConditionVariable;
+typedef LazyStaticInstance<
+ ConditionVariable, DefaultConstructTrait<ConditionVariable>,
+ ThreadSafeInitOnceTrait>::type LazyConditionVariable;
#define LAZY_CONDITION_VARIABLE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_PLATFORM_CONDITION_VARIABLE_H_
+#endif // V8_BASE_PLATFORM_CONDITION_VARIABLE_H_

Powered by Google App Engine
This is Rietveld 408576698