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

Unified Diff: base/synchronization/cancellation_flag.cc

Issue 2163753004: Rename CancellationFlag to AtomicFlag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review (remove unused includes) Created 4 years, 5 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/cancellation_flag.cc
diff --git a/base/synchronization/cancellation_flag.cc b/base/synchronization/cancellation_flag.cc
deleted file mode 100644
index ca5c0a82837070742e63914f79e57d924721efd4..0000000000000000000000000000000000000000
--- a/base/synchronization/cancellation_flag.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/synchronization/cancellation_flag.h"
-
-#include "base/logging.h"
-
-namespace base {
-
-void CancellationFlag::Set() {
-#if !defined(NDEBUG)
- DCHECK_EQ(set_on_, PlatformThread::CurrentId());
-#endif
- base::subtle::Release_Store(&flag_, 1);
-}
-
-bool CancellationFlag::IsSet() const {
- return base::subtle::Acquire_Load(&flag_) != 0;
-}
-
-void CancellationFlag::UnsafeResetForTesting() {
- base::subtle::Release_Store(&flag_, 0);
-}
-
-} // namespace base

Powered by Google App Engine
This is Rietveld 408576698