| 49 | # include <Windows.h> |
| 50 | |
| 51 | void thread::set_name(std::string_view name) noexcept { |
| 52 | const std::wstring utf16_name(name.begin(), |
| 53 | name.end()); // concurrencpp strings are always ASCII (english only) |
| 54 | ::SetThreadDescription(::GetCurrentThread(), utf16_name.data()); |
| 55 | } |
| 56 | |
| 57 | #elif defined(CRCPP_MINGW_OS) |
| 58 |