Skip to content

Commit 97e423f

Browse files
authored
Merge pull request #5959 from laytan/remove-terminate-from-demo
remove terminate from demo
2 parents cd490bd + 95a37dd commit 97e423f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

examples/demo/demo.odin

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,19 +1215,6 @@ threading_example :: proc() {
12151215
}
12161216

12171217
thread.pool_start(&pool)
1218-
1219-
{
1220-
// Wait a moment before we cancel a thread
1221-
time.sleep(5 * time.Millisecond)
1222-
1223-
// Allow one thread to print at a time.
1224-
for !did_acquire(&print_mutex) { thread.yield() }
1225-
1226-
thread.terminate(pool.threads[N - 1], 0)
1227-
fmt.println("Canceled last thread")
1228-
print_mutex = false
1229-
}
1230-
12311218
thread.pool_finish(&pool)
12321219
}
12331220
}

0 commit comments

Comments
 (0)