Iros
 
Loading...
Searching...
No Matches
never_stop_token.h
Go to the documentation of this file.
1#pragma once
2
3namespace di::sync {
5private:
6 struct Callback {
7 explicit Callback(NeverStopToken, auto&&) {}
8 };
9
10public:
11 template<typename>
12 using CallbackType = Callback;
13
14 constexpr static auto stop_requested() -> bool { return false; }
15 constexpr static auto stop_possible() -> bool { return false; }
16};
17}
Definition never_stop_token.h:4
Callback CallbackType
Definition never_stop_token.h:12
static constexpr auto stop_requested() -> bool
Definition never_stop_token.h:14
static constexpr auto stop_possible() -> bool
Definition never_stop_token.h:15
Definition atomic.h:12