From 0a525738b6f5a820c771a43c9cabc41ced745f94 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 18 Oct 2021 12:05:15 -0500 Subject: [PATCH] switched the order of parameters in thread.spawn --- core/threads/thread.onyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/threads/thread.onyx b/core/threads/thread.onyx index 933e9d69..8be7cc24 100644 --- 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; -- 2.25.1