#include <jthread_compat.hpp>
Drop-in replacement for std::jthread: owns a std::thread plus a stop_source, requests stop and joins on destruction.
Definition at line 90 of file jthread_compat.hpp.
◆ jthread() [1/4]
| libstp::threading::compat::jthread::jthread |
( |
| ) |
|
|
defaultnoexcept |
◆ jthread() [2/4]
template<typename F, typename... Args>
| libstp::threading::compat::jthread::jthread |
( |
F && | f, |
|
|
Args &&... | args ) |
|
inlineexplicit |
◆ ~jthread()
| libstp::threading::compat::jthread::~jthread |
( |
| ) |
|
|
inline |
◆ jthread() [3/4]
| libstp::threading::compat::jthread::jthread |
( |
const jthread & | | ) |
|
|
delete |
◆ jthread() [4/4]
| libstp::threading::compat::jthread::jthread |
( |
jthread && | other | ) |
|
|
inlinenoexcept |
◆ detach()
| void libstp::threading::compat::jthread::detach |
( |
| ) |
|
|
inline |
◆ get_stop_source()
| stop_source libstp::threading::compat::jthread::get_stop_source |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ get_stop_token()
| stop_token libstp::threading::compat::jthread::get_stop_token |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ join()
| void libstp::threading::compat::jthread::join |
( |
| ) |
|
|
inline |
◆ joinable()
| bool libstp::threading::compat::jthread::joinable |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ operator=() [1/2]
| jthread & libstp::threading::compat::jthread::operator= |
( |
const jthread & | | ) |
|
|
delete |
◆ operator=() [2/2]
| jthread & libstp::threading::compat::jthread::operator= |
( |
jthread && | other | ) |
|
|
inlinenoexcept |
◆ request_stop()
| bool libstp::threading::compat::jthread::request_stop |
( |
| ) |
|
|
inlinenoexcept |
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