projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5c37e
)
fixed atomics test case
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 26 Sep 2022 17:51:11 +0000
(12:51 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 26 Sep 2022 17:51:11 +0000
(12:51 -0500)
tests/atomics.onyx
patch
|
blob
|
history
diff --git
a/tests/atomics.onyx
b/tests/atomics.onyx
index 7c3b34b2bf3658b4dc9df2cd1d2ea7a22a367130..be503a45a1d38da9bc987a7a62e2e6f1b693bf48 100644
(file)
--- 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);