aboutsummaryrefslogtreecommitdiff
path: root/core/thread
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-21 11:52:48 +0000
committergingerBill <bill@gingerbill.org>2024-03-21 11:52:48 +0000
commit29e5f94c2a0d666eed93a1013f895f3c86d6373f (patch)
tree2bf6e0c219d86737e25285765d6ce9377ca02a51 /core/thread
parentfc587c507adce69d7025111ea2a3a40d7e9b373f (diff)
Add `#no_broadcast` procedure parameter to disallow automatic array programming broadcasting on procedure arguments
Diffstat (limited to 'core/thread')
-rw-r--r--core/thread/thread.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/thread/thread.odin b/core/thread/thread.odin
index 1c473bd1d..55f73d106 100644
--- a/core/thread/thread.odin
+++ b/core/thread/thread.odin
@@ -163,7 +163,7 @@ create_and_start_with_data :: proc(data: rawptr, fn: proc(data: rawptr), init_co
t := create(thread_proc, priority)
t.data = rawptr(fn)
t.user_index = 1
- t.user_args = data
+ t.user_args[0] = data
if self_cleanup {
t.flags += {.Self_Cleanup}
}