Skip to main content

DESIRED_WRITE

Static DESIRED_WRITE 

Source
static DESIRED_WRITE: Mutex<()>
Expand description

Held while a desired state is decided and written, so the record in STOPPED_THIS_RUN and the block’s meta change together: a conditional start (set_running_unless_stopped_since) cannot overwrite a stop that lands between its check and its write. Never held across a store transaction’s own work (nothing inside one calls these).