yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::util::StopToken Class Reference

#include <stop_token.h>

Public Member Functions

 StopToken ()=default
 
bool has_stop_state () const noexcept
 
bool stop_requested () const noexcept
 

Private Member Functions

 StopToken (std::shared_ptr< std::atomic< bool > > state)
 

Private Attributes

std::shared_ptr< std::atomic< bool > > state_
 

Friends

class StopSource
 

Detailed Description

Definition at line 15 of file stop_token.h.

Constructor & Destructor Documentation

◆ StopToken() [1/2]

yaze::util::StopToken::StopToken ( )
default

◆ StopToken() [2/2]

yaze::util::StopToken::StopToken ( std::shared_ptr< std::atomic< bool > > state)
inlineexplicitprivate

Definition at line 27 of file stop_token.h.

Member Function Documentation

◆ has_stop_state()

bool yaze::util::StopToken::has_stop_state ( ) const
inlinenoexcept

Definition at line 19 of file stop_token.h.

References state_.

◆ stop_requested()

Friends And Related Symbol Documentation

◆ StopSource

friend class StopSource
friend

Definition at line 26 of file stop_token.h.

Member Data Documentation

◆ state_

std::shared_ptr<std::atomic<bool> > yaze::util::StopToken::state_
private

Definition at line 30 of file stop_token.h.

Referenced by has_stop_state(), and stop_requested().


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