libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::threading::compat::stop_source Class Reference

Owner side of the stop signal. Setting it is sticky and atomic. More...

#include <jthread_compat.hpp>

Public Member Functions

 stop_source ()
stop_token get_token () const noexcept
bool request_stop () noexcept
bool stop_requested () const noexcept

Detailed Description

Owner side of the stop signal. Setting it is sticky and atomic.

Definition at line 61 of file jthread_compat.hpp.

Constructor & Destructor Documentation

◆ stop_source()

libstp::threading::compat::stop_source::stop_source ( )
inline

Definition at line 64 of file jthread_compat.hpp.

Member Function Documentation

◆ get_token()

stop_token libstp::threading::compat::stop_source::get_token ( ) const
inlinenodiscardnoexcept

Definition at line 66 of file jthread_compat.hpp.

◆ request_stop()

bool libstp::threading::compat::stop_source::request_stop ( )
inlinenoexcept

Definition at line 71 of file jthread_compat.hpp.

◆ stop_requested()

bool libstp::threading::compat::stop_source::stop_requested ( ) const
inlinenodiscardnoexcept

Definition at line 79 of file jthread_compat.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-threading/include/threading/jthread_compat.hpp