We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc68728 commit 422efabCopy full SHA for 422efab
1 file changed
src/StackExchange.Redis/AwaitableMutex.netfx.cs
@@ -84,6 +84,7 @@ public bool TryTakeSync()
84
bool lockTaken = false;
85
try
86
{
87
+ // try to acquire uncontested lock - that way we can avoid checking the time
88
Monitor.TryEnter(_queue, 0, ref lockTaken);
89
if (lockTaken && TryTakeInsideLock()) return true;
90
}
0 commit comments