ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
shutdown_policy.hpp
Go to the documentation of this file.
1#pragma once
2
8#include <cstdint>
9
10namespace threadschedule
11{
12
16enum class shutdown_policy : std::uint8_t
17{
19 drain,
22};
23
24} // namespace threadschedule
shutdown_policy
Defines how pools handle pending work during shutdown.
@ drop_pending
Cancel/drop queued work that has not started yet.
@ drain
Finish queued work before returning from shutdown.