Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fiber safety to __crystal_once & class_[getter|property]?(&) macros #15340

Prev Previous commit
Next Next commit
crystal tool format
ysbaddaden committed Jan 21, 2025
commit 5728135995a13b58af29e81b7d0ee49b1eda237c
4 changes: 2 additions & 2 deletions src/crystal/once.cr
Original file line number Diff line number Diff line change
@@ -21,8 +21,8 @@
# :nodoc:
enum OnceState : Int8
Processing = -1
Uninitialized = 0
Initialized = 1
Uninitialized = 0
Initialized = 1
end

@@once_mutex = uninitialized Mutex