MPD
0.20.15
|
A low-level identification for a thread. More...
#include <Id.hxx>
Public Member Functions | |
ThreadId ()=default | |
No initialisation. More... | |
constexpr | ThreadId (pthread_t _id) |
gcc_pure bool | IsNull () const noexcept |
gcc_pure bool | operator== (const ThreadId &other) const noexcept |
bool | IsInside () const noexcept |
Check if this thread is the current thread. More... | |
Static Public Member Functions | |
static gcc_const ThreadId | Null () noexcept |
static gcc_pure const ThreadId | GetCurrent () noexcept |
Return the current thread's id . More... | |
A low-level identification for a thread.
Designed to work with existing threads, such as the main thread. Mostly useful for debugging code.
|
default |
No initialisation.
|
inlinenoexcept |