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

Unified Diff: base/synchronization/one_writer_seqlock.cc

Issue 2358123005: Move OneWriterSeqLock and SharedMemorySeqLockBuffer from content/ to device/base/synchronization (Closed)
Patch Set: Created 4 years, 3 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: base/synchronization/one_writer_seqlock.cc
diff --git a/content/common/one_writer_seqlock.cc b/base/synchronization/one_writer_seqlock.cc
similarity index 85%
rename from content/common/one_writer_seqlock.cc
rename to base/synchronization/one_writer_seqlock.cc
index fa0c8b2d0cf424a5cfa09ca18a1b5749259de8f8..fe0766a3d90dd5b85b3fb8451d3f4258e91d5501 100644
--- a/content/common/one_writer_seqlock.cc
+++ b/base/synchronization/one_writer_seqlock.cc
@@ -1,14 +1,12 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
timvolodine 2016/09/23 17:34:27 pls keep the original creation date (also as in .h
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/one_writer_seqlock.h"
+#include "base/synchronization/one_writer_seqlock.h"
-namespace content {
+namespace base {
-OneWriterSeqLock::OneWriterSeqLock()
- : sequence_(0) {
-}
+OneWriterSeqLock::OneWriterSeqLock() : sequence_(0) {}
base::subtle::Atomic32 OneWriterSeqLock::ReadBegin() {
base::subtle::Atomic32 version;
@@ -46,4 +44,4 @@ void OneWriterSeqLock::WriteEnd() {
base::subtle::Barrier_AtomicIncrement(&sequence_, 1);
}
-} // namespace content
+} // namespace base

Powered by Google App Engine
This is Rietveld 408576698