Iros
Loading...
Searching...
No Matches
never_stop_token.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
di::sync
{
4
class
NeverStopToken
{
5
private
:
6
struct
Callback {
7
explicit
Callback(
NeverStopToken
,
auto
&&) {}
8
};
9
10
public
:
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
}
di::sync::NeverStopToken
Definition
never_stop_token.h:4
di::sync::NeverStopToken::CallbackType
Callback CallbackType
Definition
never_stop_token.h:12
di::sync::NeverStopToken::stop_requested
static constexpr auto stop_requested() -> bool
Definition
never_stop_token.h:14
di::sync::NeverStopToken::stop_possible
static constexpr auto stop_possible() -> bool
Definition
never_stop_token.h:15
di::sync
Definition
atomic.h:12
libs
di
include
di
sync
stop_token
never_stop_token.h
Generated by
1.13.0