src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (9)
1084return CompareExchange(lockObj, newState, state) == state;
1163State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1195State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1226State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1269State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1328State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1387State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1425State stateBeforeUpdate = CompareExchange(lockObj, newState, state);
1462State stateBeforeUpdate = CompareExchange(lockObj, newState, state);