Remove SetThreadDescription calls

Remove SetThreadDescription calls to restore Windows 7 compatibility
This commit is contained in:
Gleb 2023-09-11 05:18:24 +05:00 committed by GitHub
parent a076f07fa5
commit 2d2bdd16bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ void Loader::Impl::setupIPC() {
if (ConnectNamedPipe(pipe, nullptr)) { if (ConnectNamedPipe(pipe, nullptr)) {
// log::debug("Got connection, creating thread"); // log::debug("Got connection, creating thread");
std::thread pipeThread(&ipcPipeThread, pipe); std::thread pipeThread(&ipcPipeThread, pipe);
SetThreadDescription(pipeThread.native_handle(), L"Geode IPC Pipe"); // SetThreadDescription(pipeThread.native_handle(), L"Geode IPC Pipe");
pipeThread.detach(); pipeThread.detach();
} }
else { else {
@ -135,7 +135,7 @@ void Loader::Impl::setupIPC() {
} }
} }
}); });
SetThreadDescription(ipcThread.native_handle(), L"Geode Main IPC"); // SetThreadDescription(ipcThread.native_handle(), L"Geode Main IPC");
ipcThread.detach(); ipcThread.detach();
log::debug("IPC set up"); log::debug("IPC set up");