ThreadSchedule
3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
shutdown.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "../../shutdown_policy.hpp"
4
#include "
backend.hpp
"
5
6
namespace
threadschedule::detail
7
{
8
9
[[nodiscard]]
constexpr
auto
10
to_native
(
shutdown_policy
policy)
noexcept
->
shutdown_policy_backend
11
{
12
return
policy ==
shutdown_policy::drop_pending
?
shutdown_policy_backend::drop_pending
13
:
shutdown_policy_backend::drain
;
14
}
15
16
}
// namespace threadschedule::detail
threadschedule::detail
Aggregates multiple thread_registry_backend instances into a single queryable view.
Definition
native_thread.hpp:20
threadschedule::detail::shutdown_policy_backend
shutdown_policy_backend
Definition
shutdown_policy_backend.hpp:13
threadschedule::detail::shutdown_policy_backend::drop_pending
@ drop_pending
threadschedule::detail::shutdown_policy_backend::drain
@ drain
threadschedule::detail::to_native
constexpr auto to_native(shutdown_policy policy) noexcept -> shutdown_policy_backend
Definition
shutdown.hpp:10
threadschedule::shutdown_policy
shutdown_policy
Defines how pools handle pending work during shutdown.
Definition
shutdown_policy.hpp:17
threadschedule::shutdown_policy::drop_pending
@ drop_pending
Cancel/drop queued work that has not started yet.
backend.hpp
include
threadschedule
detail
pool
shutdown.hpp
Generated by
1.9.8