MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / set_name

Method set_name

source/threads/thread.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49# include <Windows.h>
50
51void 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

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected