Browse Source

Fix mutex and conditions trying to be destroyed twice in unix

powerc9000 3 years ago
parent
commit
2f3c5336d9
1 changed files with 0 additions and 2 deletions
  1. 0 2
      core/thread/thread_unix.odin

+ 0 - 2
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)
 }