[LL FIR] check for PCE after acquiring the lock for resolve

To the moment we acquire the lock, the computation might not be needed
This commit is contained in:
Ilya Kirillov
2022-12-13 13:53:21 +01:00
committed by Space Team
parent c80221afd3
commit de7383ff15
@@ -31,6 +31,7 @@ internal inline fun <T> Lock.lockWithPCECheck(lockingIntervalMs: Long, action: (
checkCanceled()
if (tryLock(lockingIntervalMs, TimeUnit.MILLISECONDS)) {
try {
checkCanceled()
needToRun = false
result = action()
} finally {