Merge pull request #1459 from powerc9000/clay-macos-fixes

Fix mutex and conditions trying to be destroyed twice in unix
This commit is contained in:
gingerBill authored and GitHub committed 2022-01-28 00:24:29 +00:00
commit 965b962b29
1 file changed
-2
-2
View File
@@ -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)
}