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/once.cc

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/base/once.h ('k') | src/base/win32-headers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/once.cc
diff --git a/src/once.cc b/src/base/once.cc
similarity index 93%
rename from src/once.cc
rename to src/base/once.cc
index 6a3b9cb56a5eb358e0e45cf575df016827a215d7..eaabf40d9a53e7b30dd6a894da670d935616e55a 100644
--- a/src/once.cc
+++ b/src/base/once.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/once.h"
+#include "src/base/once.h"
#ifdef _WIN32
#include <windows.h>
@@ -10,10 +10,10 @@
#include <sched.h>
#endif
-#include "src/atomicops.h"
+#include "src/base/atomicops.h"
namespace v8 {
-namespace internal {
+namespace base {
void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) {
AtomicWord state = Acquire_Load(once);
@@ -50,4 +50,4 @@ void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) {
}
}
-} } // namespace v8::internal
+} } // namespace v8::base
« no previous file with comments | « src/base/once.h ('k') | src/base/win32-headers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698