Fix hanging on thread.join for windows where the thread had not been started

This commit is contained in:
gingerBill
2024-05-13 12:58:18 +01:00
parent 4bdc8548bd
commit 54ebfa6179

View File

@@ -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)