Add thread.join_multiple

This commit is contained in:
gingerBill
2020-07-14 21:08:04 +01:00
parent 96ad6d2084
commit b2beb9512f
2 changed files with 32 additions and 0 deletions
+7
View File
@@ -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 = {};