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

Unified Diff: src/base/platform/semaphore.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/semaphore.h
diff --git a/src/platform/semaphore.h b/src/base/platform/semaphore.h
similarity index 88%
rename from src/platform/semaphore.h
rename to src/base/platform/semaphore.h
index 028af924f46c644b90595196aa4bc7ea9579b3a0..b3105e36f0cf5902cec107be66d4f3ae87faddbd 100644
--- a/src/platform/semaphore.h
+++ b/src/base/platform/semaphore.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_PLATFORM_SEMAPHORE_H_
-#define V8_PLATFORM_SEMAPHORE_H_
+#ifndef V8_BASE_PLATFORM_SEMAPHORE_H_
+#define V8_BASE_PLATFORM_SEMAPHORE_H_
#include "src/base/lazy-instance.h"
#if V8_OS_WIN
@@ -17,7 +17,7 @@
#endif
namespace v8 {
-namespace internal {
+namespace base {
// Forward declarations.
class TimeDelta;
@@ -90,14 +90,12 @@ struct CreateSemaphoreTrait {
template <int N>
struct LazySemaphore {
- typedef typename v8::base::LazyDynamicInstance<
- Semaphore,
- CreateSemaphoreTrait<N>,
- v8::base::ThreadSafeInitOnceTrait>::type type;
+ typedef typename LazyDynamicInstance<Semaphore, CreateSemaphoreTrait<N>,
+ ThreadSafeInitOnceTrait>::type type;
};
#define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_PLATFORM_SEMAPHORE_H_
+#endif // V8_BASE_PLATFORM_SEMAPHORE_H_

Powered by Google App Engine
This is Rietveld 408576698