Skip to content

Commit

Permalink
thread: remove win32 SetThreadDescription (#768)
Browse files Browse the repository at this point in the history
only available on newer systems
  • Loading branch information
sreimers authored Apr 15, 2023
1 parent c957af0 commit 1f34fbb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/thread/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f34fbb

Please sign in to comment.