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:
parent
044d6f2fa9
commit
1655886af0
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ impl TurboHysteresis {
|
||||||
) {
|
) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
// We won the race to initialize - set the initial state
|
// 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);
|
self.previous_state.store(initial_state, Ordering::Release);
|
||||||
initial_state
|
initial_state
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue