fixed thread name on pthread_create

This commit is contained in:
georgemoralis 2024-07-19 08:50:28 +03:00
parent dc3f406f99
commit f00c973a6a

View File

@ -1666,7 +1666,7 @@ pthread_create (pthread_t *th, const pthread_attr_t *attr, void *(* func)(void *
/* Make sure tv->h has value of INVALID_HANDLE_VALUE */
_ReadWriteBarrier();
thrd = (HANDLE) _beginthreadex(NULL, ssize, pthread_create_wrapper, tv, 0x4/*CREATE_SUSPEND*/, NULL);
thrd = (HANDLE) _beginthreadex(NULL, ssize, pthread_create_wrapper, tv, 0x4/*CREATE_SUSPEND*/, (unsigned int*)&tv->tid);
if (thrd == INVALID_HANDLE_VALUE)
thrd = 0;
/* Failed */