modm API documentation
modm::fiber::stop_source Class Reference

#include <modm/processing/fiber/stop_token.hpp>

Public Member Functions

constexpr stop_source (const stop_source &) = default
 
constexpr stop_source (stop_source &&) = default
 
constexpr stop_source & operator= (const stop_source &) = default
 
constexpr stop_source & operator= (stop_source &&) = default
 
constexpr bool stop_possible () const
 
bool stop_requested () const
 
bool request_stop ()
 
stop_token get_token () const
 
void swap (stop_source &rhs)
 

Friends

class stop_state
 
bool operator== (const stop_source &a, const stop_source &b)
 
void swap (stop_source &lhs, stop_source &rhs)
 

Detailed Description

Implements the std::stop_source interface for fibers.

See also
https://en.cppreference.com/w/cpp/thread/stop_source

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