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

Unified Diff: components/scheduler/base/pollable_thread_safe_flag.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: components/scheduler/base/pollable_thread_safe_flag.cc
diff --git a/components/scheduler/base/pollable_thread_safe_flag.cc b/components/scheduler/base/pollable_thread_safe_flag.cc
deleted file mode 100644
index 13d5b6f5ec87fccd3ba7ce121adb400d4485a203..0000000000000000000000000000000000000000
--- a/components/scheduler/base/pollable_thread_safe_flag.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2015 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 "components/scheduler/base/pollable_thread_safe_flag.h"
-
-PollableThreadSafeFlag::PollableThreadSafeFlag(base::Lock* write_lock_)
- : flag_(false), write_lock_(write_lock_) {}
-
-PollableThreadSafeFlag::~PollableThreadSafeFlag() {}
-
-void PollableThreadSafeFlag::SetWhileLocked(bool value) {
- write_lock_->AssertAcquired();
- base::subtle::Release_Store(&flag_, value);
-}
-
-bool PollableThreadSafeFlag::IsSet() const {
- return base::subtle::Acquire_Load(&flag_) != false;
-}
« no previous file with comments | « components/scheduler/base/pollable_thread_safe_flag.h ('k') | components/scheduler/base/queueing_time_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698