Skip to main content

enter

Function enter 

Source
pub fn enter(id: usize) -> Guard
Expand description

Marks id as the operator this thread is scheduling until the returned guard drops.

Guards nest: dropping one restores the operator that was current when it was created. Guards must drop in reverse creation order, which holding them in scoped bindings ensures.