Skip to content

stop timer early if lock acquired

Luke Champine requested to merge trylocktimed into master

Previously, TryLockTimed would leave the timer running until the duration elapsed. The only use of TryLockTimed is in the host, where it is used with a duration of 1 minute in managedTryLockStorageObligation. This is unlikely to cause problems in practice, but in theory, calling managedTryLockStorageObligation too frequently will eventually exhaust available memory due to the accumulating timers.

Merge request reports