pub fn pin() -> GuardExpand description
Enter a critical section
Returns a Guard that represents the active critical section.
While the guard exists, any Shared<'g, T> pointers loaded are
guaranteed to remain valid.
ยงExamples
use kovan::pin;
let guard = pin();
// Access lock-free data structures safely
drop(guard);