fn acquire(
new_rank: LockRank,
location: &'static Location<'static>,
) -> LockState
Expand description
Check and record the acquisition of a lock with new_rank
.
Check that acquiring a lock with new_rank
is permitted at this point, and
update the per-thread state accordingly.
Return the LockState
that must be restored when this thread is released.