[Threading] Android thread naming and other cleanup

This commit is contained in:
Triang3l
2020-11-22 20:03:45 +03:00
parent aca23c08cf
commit 63ff758049
8 changed files with 80 additions and 42 deletions

View File

@@ -57,7 +57,7 @@ void raise_thread_name_exception(HANDLE thread, const std::string& name) {
}
}
void set_name(HANDLE thread, const std::string_view name) {
static void set_name(HANDLE thread, const std::string_view name) {
auto kernel = GetModuleHandleW(L"kernel32.dll");
if (kernel) {
auto func =