|
| constexpr | Thread (ThreadRaw resource) noexcept |
| | Constructs from raw Thread.
|
|
constexpr | Thread (const Thread &other)=delete |
| | Copy constructor.
|
|
constexpr | Thread (Thread &&other) noexcept |
| | Move constructor.
|
|
constexpr | Thread (const ThreadRef &other)=delete |
|
constexpr | Thread (ThreadRef &&other)=delete |
| | Thread (ThreadFunction fn, StringParam name, void *data) |
| | Create a new thread with a default stack size.
|
| | Thread (ThreadCB fn, StringParam name) |
| | Create a new thread with a default stack size.
|
| | Thread (PropertiesRef props) |
| | Create a new thread with with the specified properties.
|
|
| ~Thread () |
| | Destructor.
|
|
constexpr Thread & | operator= (Thread &&other) noexcept |
| | Assignment operator.
|
|
Thread & | operator= (const Thread &other)=delete |
| | Assignment operator.
|
| void | Detach () |
| | Let a thread clean up on exit without intervention.
|
| const char * | GetName () const |
| | Get the thread name as it was specified in CreateThread().
|
| ThreadID | GetID () const |
| | Get the thread identifier for the specified thread.
|
| void | Wait (int *status) |
| | Wait for a thread to finish.
|
| ThreadState | GetState () const |
| | Get the current state of a thread.
|
|
constexpr | ResourceBase (RawPointer resource) |
| | Constructs from resource pointer.
|
|
constexpr | ResourceBase (std::nullptr_t=nullptr) |
| | Constructs null/invalid.
|
|
constexpr | ResourceBase (RawPointer resource) |
| | Constructs from resource pointer.
|
|
constexpr | operator bool () const |
| | Converts to bool.
|
|
constexpr auto | operator<=> (const ResourceBase &other) const=default |
| | Comparison.
|
|
constexpr RawConstPointer | operator-> () const noexcept |
| | member access to underlying resource pointer.
|
|
constexpr RawPointer | get () const noexcept |
| | Retrieves underlying resource pointer.
|
|
constexpr RawPointer | release () noexcept |
| | Retrieves underlying resource pointer and clear this.
|