core:thread support naming (create_ex, set_name), windows only (for now)

This commit is contained in:
ed
2025-11-06 23:36:58 -05:00
parent 50c781bd7e
commit ad0939009b
2 changed files with 67 additions and 0 deletions
+8
View File
@@ -107,6 +107,14 @@ create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^T
return _create(procedure, priority)
}
// NOTE(Ed) - Sectr Fork: Support thread naming
create_ex :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal, name: string) -> ^Thread {
return _create_ex(procedure, priority, name)
}
set_name :: proc(thread: ^Thread, name: string) {
_set_name(thread, name)
}
/*
Wait for the thread to finish and free all data associated with it.
*/