Add thread.run* shorthand procedures; Thread.init_context use new Maybe concept

This commit is contained in:
gingerBill
2020-06-22 13:28:37 +01:00
parent fb3aeccd36
commit b3c51a8b44
4 changed files with 60 additions and 22 deletions
-1
View File
@@ -1120,7 +1120,6 @@ threading_example :: proc() {
for in prefix_table {
if t := thread.create(worker_proc); t != nil {
t.init_context = context;
t.use_init_context = true;
t.user_index = len(threads);
append(&threads, t);
thread.start(t);