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

Unified Diff: src/base/platform/mutex.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/mutex.h
diff --git a/src/platform/mutex.h b/src/base/platform/mutex.h
similarity index 92%
rename from src/platform/mutex.h
rename to src/base/platform/mutex.h
index 1e9346899591569df86a73929bc4a158dd4a6b9a..256b1cee4f88dd1ae1ea8dd7cc1f2aa526823d9f 100644
--- a/src/platform/mutex.h
+++ b/src/base/platform/mutex.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_PLATFORM_MUTEX_H_
-#define V8_PLATFORM_MUTEX_H_
+#ifndef V8_BASE_PLATFORM_MUTEX_H_
+#define V8_BASE_PLATFORM_MUTEX_H_
#include "src/base/lazy-instance.h"
#if V8_OS_WIN
#include "src/base/win32-headers.h"
#endif
-#include "src/checks.h"
+#include "src/base/logging.h"
#if V8_OS_POSIX
#include <pthread.h> // NOLINT
#endif
namespace v8 {
-namespace internal {
+namespace base {
// ----------------------------------------------------------------------------
// Mutex
@@ -101,9 +101,8 @@ class Mutex V8_FINAL {
// // Do something.
// }
//
-typedef v8::base::LazyStaticInstance<
- Mutex, v8::base::DefaultConstructTrait<Mutex>,
- v8::base::ThreadSafeInitOnceTrait>::type LazyMutex;
+typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>,
+ ThreadSafeInitOnceTrait>::type LazyMutex;
#define LAZY_MUTEX_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
@@ -182,9 +181,9 @@ class RecursiveMutex V8_FINAL {
// // Do something.
// }
//
-typedef v8::base::LazyStaticInstance<
- RecursiveMutex, v8::base::DefaultConstructTrait<RecursiveMutex>,
- v8::base::ThreadSafeInitOnceTrait>::type LazyRecursiveMutex;
+typedef LazyStaticInstance<RecursiveMutex,
+ DefaultConstructTrait<RecursiveMutex>,
+ ThreadSafeInitOnceTrait>::type LazyRecursiveMutex;
#define LAZY_RECURSIVE_MUTEX_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
@@ -211,6 +210,6 @@ class LockGuard V8_FINAL {
DISALLOW_COPY_AND_ASSIGN(LockGuard);
};
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_PLATFORM_MUTEX_H_
+#endif // V8_BASE_PLATFORM_MUTEX_H_

Powered by Google App Engine
This is Rietveld 408576698