mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Add thread.join_multiple
This commit is contained in:
@@ -156,6 +156,13 @@ join :: proc(t: ^Thread) {
|
||||
}
|
||||
}
|
||||
|
||||
join_multiple :: proc(threads: ..^Thread) {
|
||||
for t in threads {
|
||||
join(t);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
destroy :: proc(t: ^Thread) {
|
||||
join(t);
|
||||
t.unix_thread = {};
|
||||
|
||||
Reference in New Issue
Block a user