Skip to content

Commit 422efab

Browse files
committed
words
1 parent bc68728 commit 422efab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/StackExchange.Redis/AwaitableMutex.netfx.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public bool TryTakeSync()
8484
bool lockTaken = false;
8585
try
8686
{
87+
// try to acquire uncontested lock - that way we can avoid checking the time
8788
Monitor.TryEnter(_queue, 0, ref lockTaken);
8889
if (lockTaken && TryTakeInsideLock()) return true;
8990
}

0 commit comments

Comments
 (0)