|
| pThread () |
| Construct empty (invalid) thread.
|
|
template<typename Callback, typename... ARGS> |
| pThread (Callback c, ARGS &&... args) |
| Construct and start POSIX thread.
|
|
| pThread (pThread &&other) noexcept |
|
pThread & | operator= (pThread &&other) noexcept |
|
void | join () |
| Wait for thread to complete.
|
|
void | detach () |
| Detach thread (allow it to run independently)
|
|
virtual | ~threadBase () noexcept(false) |
| Destructor.
|
|
| threadBase (const threadBase &)=delete |
|
threadBase & | operator= (const threadBase &)=delete |
|
| threadBase (threadBase &&other) noexcept=default |
|
threadBase & | operator= (threadBase &&other) noexcept=default |
|
| operator bool () const |
| Check if thread is valid.
|
|
bool | operator! () const |
| Check if thread is not valid.
|
|
bool | joinable () const |
| Check if thread is joinable.
|
|
POSIX thread implementation.
Wrapper around pthread with RAII semantics