Skip to main content

lean_mark_mt

Function lean_mark_mt 

Source
pub unsafe fn lean_mark_mt(o: Obj)
Expand description

Marks o and every object reachable from it as shared between threads (lean_mark_mt): their counts are negated and updated atomically from then on. Objects that are already shared or persistent, and what they reach, are left alone. The caller must be the only thread that can reach the objects still owned by one thread.