Iros
 
Loading...
Searching...
No Matches
di::sync::InPlaceStopCallback< Callback > Class Template Reference

#include <di/sync/stop_token/in_place_stop_callback.h>

Inheritance diagram for di::sync::InPlaceStopCallback< Callback >:
[legend]

Public Types

using CallbackType = Callback
 

Public Member Functions

template<typename C>
requires (concepts::ConstructibleFrom<Callback, C>)
 InPlaceStopCallback (InPlaceStopToken token, C &&callback)
 
 InPlaceStopCallback (InPlaceStopCallback &&)=delete
 
 ~InPlaceStopCallback ()
 
- Public Member Functions inherited from di::container::IntrusiveListNode<>
constexpr IntrusiveListNode ()
 
constexpr IntrusiveListNode ()
 

Additional Inherited Members

- Protected Member Functions inherited from di::sync::detail::InPlaceStopCallbackBase
 InPlaceStopCallbackBase (InPlaceStopSource const *parent, ErasedCallback execute)
 
- Protected Attributes inherited from di::sync::detail::InPlaceStopCallbackBase
InPlaceStopSource const * m_parent { nullptr }
 
ErasedCallback m_execute { nullptr }
 
Atomic< bool > m_already_executed { false }
 
Atomic< bool * > m_did_destruct_in_same_thread { nullptr }
 

Member Typedef Documentation

◆ CallbackType

template<typename Callback>
using di::sync::InPlaceStopCallback< Callback >::CallbackType = Callback

Constructor & Destructor Documentation

◆ InPlaceStopCallback() [1/2]

template<typename Callback>
template<typename C>
requires (concepts::ConstructibleFrom<Callback, C>)
di::sync::InPlaceStopCallback< Callback >::InPlaceStopCallback ( InPlaceStopToken token,
C && callback )
inlineexplicit

◆ InPlaceStopCallback() [2/2]

template<typename Callback>
di::sync::InPlaceStopCallback< Callback >::InPlaceStopCallback ( InPlaceStopCallback< Callback > && )
delete

◆ ~InPlaceStopCallback()

template<typename Callback>
di::sync::InPlaceStopCallback< Callback >::~InPlaceStopCallback ( )
inline

The documentation for this class was generated from the following files: