1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

engine: document data race in initialize_with

This commit is contained in:
NotAShelf 2025-05-18 03:44:26 +03:00
parent 044d6f2fa9
commit 1655886af0
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -81,6 +81,7 @@ impl TurboHysteresis {
) {
Ok(_) => {
// We won the race to initialize - set the initial state
// Store the initial_state first, before marking as initialized
self.previous_state.store(initial_state, Ordering::Release);
initial_state
}