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

Unified Diff: src/platform/mutex.h

Issue 316133002: Move atomic ops and related files 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
« no previous file with comments | « src/platform/condition-variable.h ('k') | src/platform/semaphore.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/mutex.h
diff --git a/src/platform/mutex.h b/src/platform/mutex.h
index 9b359cb8e29b5d9f1194ccaa2441772f0dc06668..1e9346899591569df86a73929bc4a158dd4a6b9a 100644
--- a/src/platform/mutex.h
+++ b/src/platform/mutex.h
@@ -5,11 +5,11 @@
#ifndef V8_PLATFORM_MUTEX_H_
#define V8_PLATFORM_MUTEX_H_
-#include "src/checks.h"
-#include "src/lazy-instance.h"
+#include "src/base/lazy-instance.h"
#if V8_OS_WIN
-#include "src/win32-headers.h"
+#include "src/base/win32-headers.h"
#endif
+#include "src/checks.h"
#if V8_OS_POSIX
#include <pthread.h> // NOLINT
@@ -101,9 +101,9 @@ class Mutex V8_FINAL {
// // Do something.
// }
//
-typedef LazyStaticInstance<Mutex,
- DefaultConstructTrait<Mutex>,
- ThreadSafeInitOnceTrait>::type LazyMutex;
+typedef v8::base::LazyStaticInstance<
+ Mutex, v8::base::DefaultConstructTrait<Mutex>,
+ v8::base::ThreadSafeInitOnceTrait>::type LazyMutex;
#define LAZY_MUTEX_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
@@ -182,9 +182,9 @@ class RecursiveMutex V8_FINAL {
// // Do something.
// }
//
-typedef LazyStaticInstance<RecursiveMutex,
- DefaultConstructTrait<RecursiveMutex>,
- ThreadSafeInitOnceTrait>::type LazyRecursiveMutex;
+typedef v8::base::LazyStaticInstance<
+ RecursiveMutex, v8::base::DefaultConstructTrait<RecursiveMutex>,
+ v8::base::ThreadSafeInitOnceTrait>::type LazyRecursiveMutex;
#define LAZY_RECURSIVE_MUTEX_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
« no previous file with comments | « src/platform/condition-variable.h ('k') | src/platform/semaphore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698