mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Fix mutex and conditions trying to be destroyed twice in unix
This commit is contained in:
@@ -167,8 +167,6 @@ _join_multiple :: proc(threads: ..^Thread) {
|
|||||||
|
|
||||||
_destroy :: proc(t: ^Thread) {
|
_destroy :: proc(t: ^Thread) {
|
||||||
_join(t)
|
_join(t)
|
||||||
sync.condition_destroy(&t.start_gate)
|
|
||||||
sync.mutex_destroy(&t.start_mutex)
|
|
||||||
t.unix_thread = {}
|
t.unix_thread = {}
|
||||||
free(t, t.creation_allocator)
|
free(t, t.creation_allocator)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user