Skip to content

Commit 8a73cc6

Browse files
committed
Fix build
1 parent 593a5d4 commit 8a73cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ public int Release(int releaseCount)
908908
lock (m_lockObjAndDisposed)
909909
{
910910
// Read the m_currentCount into a local variable to avoid unnecessary volatile accesses inside the lock.
911-
currentCount = m_currentCount;
911+
int currentCount = m_currentCount;
912912
returnCount = currentCount;
913913

914914
// If the release count would result exceeding the maximum count, throw SemaphoreFullException.

0 commit comments

Comments
 (0)