-
Notifications
You must be signed in to change notification settings - Fork 258
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
Is it necessary to use Ordering::SeqCst in the log! ?? #509
Comments
I tried to use a more relaxed order and wrote a test However, when I tried to change all the memory order to Relaxed and tested on the arm platform, there was no visibility problem either. |
I think the ordering there could probably be downgraded so long as we always see the store of |
Reference std::sync::Once SeqCst is not necessary, I am concerned that using SeqCst in every log! will affect performance (log! is too common and SeqCst is too expensive on some platforms). |
I am using a translation tool, so please bear with me if I make any mistakes. |
chore: Release Co-authored-by: github-actions <github-actions@github.com>
Since #610 we're using |
See the implementation of std::lazy::SyncOnceCell or parking_lot::Once
The text was updated successfully, but these errors were encountered: