projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e120a03
)
switched the order of parameters in thread.spawn
threading
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 18 Oct 2021 17:05:15 +0000
(12:05 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 18 Oct 2021 17:05:15 +0000
(12:05 -0500)
core/threads/thread.onyx
patch
|
blob
|
history
diff --git
a/core/threads/thread.onyx
b/core/threads/thread.onyx
index 933e9d69b85aa0415a8c57a2076e4fe0dced9aee..8be7cc24e32323b49ae048d67e1d6bfc5e9d04a2 100644
(file)
--- a/
core/threads/thread.onyx
+++ b/
core/threads/thread.onyx
@@
-18,7
+18,7
@@
Thread :: struct {
alive : bool;
}
-spawn :: (t: ^Thread,
func: (rawptr) -> void, data: rawptr
) {
+spawn :: (t: ^Thread,
data: rawptr, func: (rawptr) -> void
) {
sync.scoped_mutex(^thread_mutex);
t.id = next_thread_id;