// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TASK_SEQUENCE_MANAGER_ATOMIC_FLAG_SET_H_ #define BASE_TASK_SEQUENCE_MANAGER_ATOMIC_FLAG_SET_H_ #include <array> #include <atomic> #include <memory> #include "base/base_export.h" #include "base/functional/callback.h" #include "base/memory/raw_ptr.h" #include "base/task/sequence_manager/associated_thread_id.h" namespace base::sequence_manager::internal { // This class maintains a set of AtomicFlags which can be activated or // deactivated at any time by any thread. When a flag is created a callback is // specified and the RunActiveCallbacks method can be invoked to fire callbacks // for all active flags. Creating releasing or destroying an AtomicFlag must be // done on the associated thread, as must calling RunActiveCallbacks. This // class is thread-affine. class BASE_EXPORT AtomicFlagSet { … }; } // namespace base::sequence_manager::internal #endif // BASE_TASK_SEQUENCE_MANAGER_ATOMIC_FLAG_SET_H_