Skip to content

Commit

Permalink
thread: remove win32 SetThreadDescription (baresip#768)
Browse files Browse the repository at this point in the history
only available on newer systems
  • Loading branch information
sreimers authored and Vladimir Orlov committed May 11, 2023
1 parent 66e0eae commit 62ce1d6
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 62ce1d6

Please sign in to comment.