modm API documentation
modm::fiber::stop_token Class Reference

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

Public Member Functions

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

Friends

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

Detailed Description

Implements the std::stop_token interface for fibers.

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

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