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

#include <stop_token.h>

Public Member Functions

 StopSource ()
 
 StopSource (NoStopStateTag) noexcept
 
StopToken get_token () const noexcept
 
bool request_stop () noexcept
 

Private Attributes

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

Detailed Description

Definition at line 33 of file stop_token.h.

Constructor & Destructor Documentation

◆ StopSource() [1/2]

yaze::util::StopSource::StopSource ( )
inline

Definition at line 35 of file stop_token.h.

◆ StopSource() [2/2]

yaze::util::StopSource::StopSource ( NoStopStateTag )
inlineexplicitnoexcept

Definition at line 36 of file stop_token.h.

Member Function Documentation

◆ get_token()

StopToken yaze::util::StopSource::get_token ( ) const
inlinenoexcept

◆ request_stop()

Member Data Documentation

◆ state_

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

Definition at line 45 of file stop_token.h.

Referenced by get_token(), and request_stop().


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