mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Add id to thread.Thread
This commit is contained in:
@@ -47,7 +47,8 @@ _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^
|
||||
t.start_mutex = {}
|
||||
|
||||
context = t.init_context.? or_else runtime.default_context()
|
||||
|
||||
|
||||
t.id = sync.current_thread_id()
|
||||
t.procedure(t)
|
||||
|
||||
if t.init_context == nil {
|
||||
|
||||
Reference in New Issue
Block a user