opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
osc::cpp20::jthread Class Referencefinal

#include <thread.h>

Public Member Functions

 jthread ()=default
 
template<typename Function , typename... Args>
requires std::invocable<Function, stop_token, Args&&...>
 jthread (Function &&f, Args &&... args)
 
 jthread (jthread const &)=delete
 
jthreadoperator= (jthread const &)=delete
 
 jthread (jthread &&) noexcept=default
 
jthreadoperator= (jthread &&other) noexcept
 
 ~jthread () noexcept
 
bool joinable () const noexcept
 
bool request_stop () noexcept
 
void join ()
 

Constructor & Destructor Documentation

◆ jthread() [1/4]

osc::cpp20::jthread::jthread ( )
default

◆ jthread() [2/4]

template<typename Function , typename... Args>
requires std::invocable<Function, stop_token, Args&&...>
osc::cpp20::jthread::jthread ( Function &&  f,
Args &&...  args 
)
inline

◆ jthread() [3/4]

osc::cpp20::jthread::jthread ( jthread const )
delete

◆ jthread() [4/4]

osc::cpp20::jthread::jthread ( jthread &&  )
defaultnoexcept

◆ ~jthread()

osc::cpp20::jthread::~jthread ( )
inlinenoexcept

Member Function Documentation

◆ join()

void osc::cpp20::jthread::join ( )
inline

◆ joinable()

bool osc::cpp20::jthread::joinable ( ) const
inlinenoexcept

◆ operator=() [1/2]

jthread & osc::cpp20::jthread::operator= ( jthread &&  other)
inlinenoexcept

◆ operator=() [2/2]

jthread & osc::cpp20::jthread::operator= ( jthread const )
delete

◆ request_stop()

bool osc::cpp20::jthread::request_stop ( )
inlinenoexcept

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