mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 08:34:08 +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}
|
||||
|
||||
if .Started not_in t.flags {
|
||||
_start(t)
|
||||
t.flags += {.Started}
|
||||
win32.ResumeThread(t.win32_thread)
|
||||
}
|
||||
|
||||
win32.WaitForSingleObject(t.win32_thread, win32.INFINITE)
|
||||
|
||||
Reference in New Issue
Block a user