Skip to main content

stop_counting_this_thread

Function stop_counting_this_thread 

Source
pub fn stop_counting_this_thread()
Expand description

Stops counting the calling thread’s allocations. A registered thread calls it before it ends: its exit’s frees (its thread-locals’ destructors, its handle) come after thread::scope has joined it, and counted they would land in whatever window a later test has armed.