We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd490bd + 95a37dd commit 97e423fCopy full SHA for 97e423f
examples/demo/demo.odin
@@ -1215,19 +1215,6 @@ threading_example :: proc() {
1215
}
1216
1217
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
1231
thread.pool_finish(&pool)
1232
1233
0 commit comments