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

Side by Side Diff: base/cancellation_flag.cc

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/cancellation_flag.h ('k') | base/cancellation_flag_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/cancellation_flag.h"
6
7 #include "base/logging.h"
8
9 namespace base {
10
11 void CancellationFlag::Set() {
12 #if !defined(NDEBUG)
13 DCHECK_EQ(set_on_, PlatformThread::CurrentId());
14 #endif
15 base::subtle::Release_Store(&flag_, 1);
16 }
17
18 bool CancellationFlag::IsSet() const {
19 return base::subtle::Acquire_Load(&flag_) != 0;
20 }
21
22 } // namespace base
OLDNEW
« no previous file with comments | « base/cancellation_flag.h ('k') | base/cancellation_flag_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698