#include <jthread_compat.hpp>
Cooperative stop signal observed by a daemon. Shares a refcounted flag with its stop_source; thread-safe.
Definition at line 37 of file jthread_compat.hpp.
◆ stop_token() [1/2]
| libstp::threading::compat::stop_token::stop_token |
( |
| ) |
|
|
default |
◆ stop_token() [2/2]
| libstp::threading::compat::stop_token::stop_token |
( |
std::shared_ptr< std::atomic< bool > > | flag | ) |
|
|
inlineexplicitnoexcept |
◆ stop_possible()
| bool libstp::threading::compat::stop_token::stop_possible |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ stop_requested()
| bool libstp::threading::compat::stop_token::stop_requested |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
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