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