Add automatically-generated names to threads

This commit is contained in:
RichardG867
2024-01-09 20:13:16 -03:00
parent ce342400eb
commit 67c84f1ae6
9 changed files with 107 additions and 6 deletions

View File

@@ -37,9 +37,10 @@ typedef struct {
} win_event_t;
thread_t *
thread_create(void (*func)(void *param), void *param)
thread_create(void (*func)(void *param), void *param, const char *name)
{
uintptr_t bt = _beginthread(func, 0, param);
plat_set_thread_name(bt, name);
return ((thread_t *) bt);
}