From: Brendan Hansen Date: Mon, 18 Oct 2021 17:05:15 +0000 (-0500) Subject: switched the order of parameters in thread.spawn X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=0a525738b6f5a820c771a43c9cabc41ced745f94;p=onyx.git switched the order of parameters in thread.spawn --- 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;