mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Fix #5321
This commit is contained in:
@@ -31,8 +31,6 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
t.id = sync.current_thread_id()
|
|
||||||
|
|
||||||
{
|
{
|
||||||
init_context := t.init_context
|
init_context := t.init_context
|
||||||
|
|
||||||
@@ -76,6 +74,7 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
|
|||||||
thread.procedure = procedure
|
thread.procedure = procedure
|
||||||
thread.win32_thread = win32_thread
|
thread.win32_thread = win32_thread
|
||||||
thread.win32_thread_id = win32_thread_id
|
thread.win32_thread_id = win32_thread_id
|
||||||
|
thread.id = int(win32_thread_id)
|
||||||
|
|
||||||
ok := win32.SetThreadPriority(win32_thread, _thread_priority_map[priority])
|
ok := win32.SetThreadPriority(win32_thread, _thread_priority_map[priority])
|
||||||
assert(ok == true)
|
assert(ok == true)
|
||||||
|
|||||||
Reference in New Issue
Block a user