ORIGINAL
|
Base class for thread implementations. More...
#include <thread.h>
Classes | |
class | threadData |
Wrapper for thread execution data. More... | |
Public Member Functions | |
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. | |
Protected Member Functions | |
virtual bool | valid () const =0 |
Check if thread is valid. | |
threadBase (bool is_joinable=false) | |
Construct thread base. | |
Protected Attributes | |
bool | is_joinable |
Base class for thread implementations.
Provides common thread functionality and interface
Key Features:
|
inlineexplicitprotected |
Construct thread base.
is_joinable | Whether thread is joinable |
|
inlinevirtual |
Destructor.
sysError | if thread is joinable but not joined/detached |
|
inlinenodiscard |
Check if thread is joinable.
|
inlineexplicit |
Check if thread is valid.
|
inline |
Check if thread is not valid.
|
nodiscardprotectedpure virtual |
Check if thread is valid.