We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593a5d4 commit 8a73cc6Copy full SHA for 8a73cc6
src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs
@@ -908,7 +908,7 @@ public int Release(int releaseCount)
908
lock (m_lockObjAndDisposed)
909
{
910
// Read the m_currentCount into a local variable to avoid unnecessary volatile accesses inside the lock.
911
- currentCount = m_currentCount;
+ int currentCount = m_currentCount;
912
returnCount = currentCount;
913
914
// If the release count would result exceeding the maximum count, throw SemaphoreFullException.
0 commit comments