60 using Ptr = std::unique_ptr<Thread>;
71 [[nodiscard]]
bool joinable()
const;
75 static void run(std::shared_ptr<RuntimeData> data);
77 [[nodiscard]]
tid_t getTid() const noexcept {
return data->id; }
78 [[nodiscard]]
const std::string &
getThreadName() const noexcept {
return this->data->name; }
90 static tid_t getCurrentThreadId() noexcept;
91 static const
char *getCurrentThreadName() noexcept;
92 static
void setCurrentThreadAsMain() noexcept;
93 static
tid_t getMainThreadId() noexcept;