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