From: Brendan Hansen Date: Mon, 26 Sep 2022 17:51:11 +0000 (-0500) Subject: fixed atomics test case X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=a092b16cea89a621a4ab72799972b4b76973f19e;p=onyx.git fixed atomics test case --- diff --git a/tests/atomics.onyx b/tests/atomics.onyx index 7c3b34b2..be503a45 100644 --- a/tests/atomics.onyx +++ b/tests/atomics.onyx @@ -16,7 +16,7 @@ shared_mutex : sync.Mutex; // This is shared, and exists to test that initializing new threads // does not re-execute the intialization segments. -test := 5678; +test_var := 5678; print_from_other_thread :: (sd) => { // Creating high contention for the shared resource @@ -38,8 +38,8 @@ print_from_other_thread :: (sd) => { main :: (args) => { sync.mutex_init(^shared_mutex); - test = 1234; - println(test); + test_var = 1234; + println(test_var); sd: Shared_Data; sd.arr = make([] i32, 1000);