From 2f3c5336d95be028fac795fe75b70fc271b15800 Mon Sep 17 00:00:00 2001 From: powerc9000 Date: Thu, 9 Dec 2021 13:03:27 -0700 Subject: [PATCH] Fix mutex and conditions trying to be destroyed twice in unix --- core/thread/thread_unix.odin | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin index cee278c7a..6cb91df86 100644 --- a/core/thread/thread_unix.odin +++ b/core/thread/thread_unix.odin @@ -167,8 +167,6 @@ _join_multiple :: proc(threads: ..^Thread) { _destroy :: proc(t: ^Thread) { _join(t) - sync.condition_destroy(&t.start_gate) - sync.mutex_destroy(&t.start_mutex) t.unix_thread = {} free(t, t.creation_allocator) }