From 62ce1d68fb25b6c9a6f95b3d78a9de7479859262 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sat, 15 Apr 2023 21:34:02 +0200 Subject: [PATCH] thread: remove win32 SetThreadDescription (#768) only available on newer systems --- src/thread/thread.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/thread/thread.c b/src/thread/thread.c index 6e2667f97..ba9be9b11 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -71,12 +71,6 @@ static int handler(void *p) #ifdef HAVE_PRCTL (void)prctl(PR_SET_NAME, th.name); -#elif defined(WIN32) - wchar_t *name = str_wchar(th.name); - if (name) { - (void)SetThreadDescription(GetCurrentThread(), name); - mem_deref(name); - } #elif defined(DARWIN) (void)pthread_setname_np(th.name); #elif defined(HAVE_PTHREAD)