LeviLamina
Loading...
Searching...
No Matches
ThreadName.h
1#pragma once
2
3#include <string>
4#include <string_view>
5#include <thread>
6
7#include "ll/api/base/Macro.h"
8
9namespace ll::thread {
10LLNDAPI std::optional<std::string> getThreadName(std::thread::id id = std::this_thread::get_id());
11LLAPI bool setThreadName(std::string_view name, std::thread::id id = std::this_thread::get_id());
12} // namespace ll::thread