Skip to main content

set_mode

Function set_mode 

Source
pub fn set_mode(m: Mode)
Expand description

Set what a marked thread does when it allocates.

Meant to be called once, from main, before any thread is marked. It is an atomic store rather than a OnceLock so that a test can set it and put it back, which is the only reason it is allowed to happen twice.