1 instantiation of Scope
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
122public Scope EnterScope() => new Scope(this, EnterAndGetCurrentThreadId());
5 references to Scope
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (5)
103/// Enters the lock and returns a <see cref="Scope"/> that may be disposed to exit the lock. Once the method returns, 105/// language construct that would automatically dispose the <see cref="Scope"/>, such as with the C# <code>using</code> 109/// A <see cref="Scope"/> that may be disposed to exit the lock. 114/// disposing the returned <see cref="Scope"/>, as many times as it had entered the lock to fully exit the lock and 122public Scope EnterScope() => new Scope(this, EnterAndGetCurrentThreadId());