|
| 1 | +// include/beman/execution/detail/parallel_scheduler.hpp -*-C++-*- |
| 2 | +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | + |
| 4 | +#ifndef INCLUDED_BEMAN_EXECUTION_DETAIL_PARALLEL_SCHEDULER |
| 5 | +#define INCLUDED_BEMAN_EXECUTION_DETAIL_PARALLEL_SCHEDULER |
| 6 | + |
| 7 | +#include <beman/execution/detail/common.hpp> |
| 8 | +#ifdef BEMAN_HAS_IMPORT_STD |
| 9 | +import std; |
| 10 | +#else |
| 11 | +#include <cstddef> |
| 12 | +#include <concepts> |
| 13 | +#include <exception> |
| 14 | +#include <memory> |
| 15 | +#include <optional> |
| 16 | +#include <span> |
| 17 | +#include <type_traits> |
| 18 | +#include <utility> |
| 19 | +#endif |
| 20 | +#ifdef BEMAN_HAS_MODULES |
| 21 | +import beman.execution.detail.completion_signatures; |
| 22 | +import beman.execution.detail.get_completion_scheduler; |
| 23 | +import beman.execution.detail.get_forward_progress_guarantee; |
| 24 | +import beman.execution.detail.operation_state; |
| 25 | +import beman.execution.detail.receiver; |
| 26 | +import beman.execution.detail.scheduler; |
| 27 | +import beman.execution.detail.scheduler_t; |
| 28 | +import beman.execution.detail.sender; |
| 29 | +import beman.execution.detail.set_error; |
| 30 | +import beman.execution.detail.set_stopped; |
| 31 | +import beman.execution.detail.set_value; |
| 32 | +#else |
| 33 | +#include <beman/execution/detail/completion_signatures.hpp> |
| 34 | +#include <beman/execution/detail/get_completion_scheduler.hpp> |
| 35 | +#include <beman/execution/detail/get_forward_progress_guarantee.hpp> |
| 36 | +#include <beman/execution/detail/operation_state.hpp> |
| 37 | +#include <beman/execution/detail/receiver.hpp> |
| 38 | +#include <beman/execution/detail/scheduler.hpp> |
| 39 | +#include <beman/execution/detail/scheduler_t.hpp> |
| 40 | +#include <beman/execution/detail/sender.hpp> |
| 41 | +#include <beman/execution/detail/set_error.hpp> |
| 42 | +#include <beman/execution/detail/set_stopped.hpp> |
| 43 | +#include <beman/execution/detail/set_value.hpp> |
| 44 | +#endif |
| 45 | + |
| 46 | +// ---------------------------------------------------------------------------- |
| 47 | + |
| 48 | +namespace beman::execution { |
| 49 | + |
| 50 | +class parallel_scheduler { |
| 51 | + // TODO(P2079R10): add scheduler state and operations. |
| 52 | +}; |
| 53 | + |
| 54 | +// TODO(P2079R10): implement using system_context_replaceability::query_parallel_scheduler_backend(). |
| 55 | +auto get_parallel_scheduler() -> parallel_scheduler; |
| 56 | + |
| 57 | +} // namespace beman::execution |
| 58 | + |
| 59 | +// ---------------------------------------------------------------------------- |
| 60 | + |
| 61 | +#endif // INCLUDED_BEMAN_EXECUTION_DETAIL_PARALLEL_SCHEDULER |
0 commit comments