mirror of
https://github.com/shadps4-emu/winpthreads.git
synced 2024-11-23 03:09:38 +00:00
fixed thread name on pthread_create
This commit is contained in:
parent
dc3f406f99
commit
f00c973a6a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user