Function acquire
Source pub unsafe fn acquire() -> RestoreState
Expand description
Enter a critical section, returning the state to restore on exit.
§Safety
Each call must be paired with exactly one release of its result, in
reverse order of acquisition (sections nest like brackets).