Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// Copyright (c) 2009 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/cancellation_flag.h"

#include "base/logging.h"

namespace base {

void CancellationFlag::Set() {
#if !defined(NDEBUG)
  DCHECK(set_on_ == PlatformThread::CurrentId());
  base::subtle::Release_Store(&flag_, 1);

bool CancellationFlag::IsSet() const {
  return base::subtle::Acquire_Load(&flag_) != 0;

}  // namespace base

Generated by  Doxygen 1.6.0   Back to index