#include <thread.h>
|
| | Thread () noexcept=default |
| | Default constructor. More...
|
| |
| template<typename Callable , typename... Args> |
| | Thread (std::string const &thread_name, Callable &&callable, Args &&...args) noexcept |
| | Constructor to start the thread with passed callable and arguments. More...
|
| |
| | Thread (const Thread &other) noexcept=delete |
| | Deleted copy assignment and copy constructor. More...
|
| |
| Thread & | operator= (const Thread &other) noexcept=delete |
| |
| | Thread (Thread &&other) noexcept=default |
| | Defaulted move assignment and move constructor. More...
|
| |
| Thread & | operator= (Thread &&other) noexcept=default |
| |
| | ~Thread () noexcept |
| | Destructor. More...
|
| |
| void | Join () noexcept |
| | Function to join the running thread. More...
|
| |
Definition at line 20 of file thread.h.
◆ Thread() [1/4]
| utility::thread::Thread::Thread |
( |
| ) |
|
|
defaultnoexcept |
◆ Thread() [2/4]
template<typename Callable , typename... Args>
| utility::thread::Thread::Thread |
( |
std::string const & |
thread_name, |
|
|
Callable && |
callable, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinenoexcept |
Constructor to start the thread with passed callable and arguments.
- Template Parameters
-
| Callable | The callable that is invoked by created thread |
| Args | The arguments passed to the callable |
Definition at line 36 of file thread.h.
37 :
thread_{std::forward<Callable>(callable), std::forward<Args>(args)...} {
39 pthread_setname_np(
thread_.native_handle(), thread_name.c_str());
◆ Thread() [3/4]
| utility::thread::Thread::Thread |
( |
const Thread & |
other | ) |
|
|
deletenoexcept |
Deleted copy assignment and copy constructor.
◆ Thread() [4/4]
| utility::thread::Thread::Thread |
( |
Thread && |
other | ) |
|
|
defaultnoexcept |
Defaulted move assignment and move constructor.
◆ ~Thread()
| utility::thread::Thread::~Thread |
( |
| ) |
|
|
inlinenoexcept |
Destructor.
Definition at line 57 of file thread.h.
void Join() noexcept
Function to join the running thread.
References Join().
◆ Join()
| void utility::thread::Thread::Join |
( |
| ) |
|
|
inlinenoexcept |
◆ operator=() [1/2]
| Thread& utility::thread::Thread::operator= |
( |
const Thread & |
other | ) |
|
|
deletenoexcept |
◆ operator=() [2/2]
| Thread& utility::thread::Thread::operator= |
( |
Thread && |
other | ) |
|
|
defaultnoexcept |
◆ thread_
| std::thread utility::thread::Thread::thread_ {} |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/diag-client-lib/diag-client-lib/diag-client-lib/lib/utility-support/utility/thread.h