Skip to main content

set_global

Function set_global 

Source
pub fn set_global(dog: Arc<MemWatchdog>) -> Arc<MemWatchdog> ⓘ
Expand description

Replace the process-wide watchdog — what a test does to put a fake /proc/meminfo under a real store. Returns the previous one so the test can put it back.