mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Add naming support to Win32 threads
This commit is contained in:
@@ -35,11 +35,11 @@ typedef struct {
|
||||
HANDLE handle;
|
||||
} win_event_t;
|
||||
|
||||
/* For compatibility with thread.h, but Win32 does not allow named threads. */
|
||||
thread_t *
|
||||
thread_create_named(void (*func)(void *param), void *param, UNUSED(const char *name))
|
||||
thread_create_named(void (*func)(void *param), void *param, const char *name)
|
||||
{
|
||||
uintptr_t bt = _beginthread(func, 0, param);
|
||||
plat_set_thread_name((void *) bt, name);
|
||||
return ((thread_t *) bt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user