switched the order of parameters in thread.spawn threading
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 18 Oct 2021 17:05:15 +0000 (12:05 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 18 Oct 2021 17:05:15 +0000 (12:05 -0500)
core/threads/thread.onyx

index 933e9d69b85aa0415a8c57a2076e4fe0dced9aee..8be7cc24e32323b49ae048d67e1d6bfc5e9d04a2 100644 (file)
@@ -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;