mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix hanging on thread.join for windows where the thread had not been started
This commit is contained in:
@@ -100,7 +100,8 @@ _join :: proc(t: ^Thread) {
|
|||||||
t.flags += {.Joined}
|
t.flags += {.Joined}
|
||||||
|
|
||||||
if .Started not_in t.flags {
|
if .Started not_in t.flags {
|
||||||
_start(t)
|
t.flags += {.Started}
|
||||||
|
win32.ResumeThread(t.win32_thread)
|
||||||
}
|
}
|
||||||
|
|
||||||
win32.WaitForSingleObject(t.win32_thread, win32.INFINITE)
|
win32.WaitForSingleObject(t.win32_thread, win32.INFINITE)
|
||||||
|
|||||||
Reference in New Issue
Block a user