This class prevents lock acquisitions from being interrupted when it is in scope.
More...
This class prevents lock acquisitions from being interrupted when it is in scope.
The default behavior of acquisitions depends on the type of lock that is being requested. Use this in the unlikely case that waiting for a lock can't be interrupted.
Lock acquisitions can still return LOCK_TIMEOUT, just not if the parent operation context is killed first.
It is possible that multiple callers are requesting uninterruptible behavior, so the guard increments a counter on the Locker class to indicate how may guards are active.