41 references to _parserLock
System.Data (41)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (6)
1775
_parserLock = internalConnection.
_parserLock
;
1937
bool semaphoreLock = internalConnection.
_parserLock
.CanBeReleasedFromAnyThread;
1938
internalConnection.
_parserLock
.Release();
1947
internalConnection.
_parserLock
.Wait(canReleaseFromAnyThread: semaphoreLock);
2596
_parserLock = _connection.GetOpenTdsConnection().
_parserLock
;
2613
_parserLock = _connection.GetOpenTdsConnection().
_parserLock
;
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (13)
398
_parserLock
.Wait(canReleaseFromAnyThread:false);
460
_parserLock
.Release();
1086
Debug.Assert(!ThreadHasParserLockForClose ||
_parserLock
.ThreadMayHaveLock(), "Thread claims to have parser lock, but lock is not taken");
1088
_parserLock
.Wait(canReleaseFromAnyThread:false);
1122
_parserLock
.Release();
1172
_parserLock
.Release();
2004
Debug.Assert(obtainParserLock ||
_parserLock
.ThreadMayHaveLock(), "Thread claims to have lock, but lock is not taken");
2006
_parserLock
.Wait(canReleaseFromAnyThread: false);
2016
_parserLock
.Release();
2029
_parserLock
.Wait(canReleaseFromAnyThread: false);
2044
_parserLock
.Release();
2075
_parserLock
.Release();
2665
Debug.Assert(
_parserLock
.ThreadMayHaveLock(), "Should not modify ThreadHasParserLockForClose without taking the lock first");
fx\src\data\System\Data\SqlClient\TdsParser.cs (17)
1232
Debug.Assert(!callerHasConnectionLock || _connHandler.
_parserLock
.ThreadMayHaveLock(), "Caller claims to have lock, but connection lock is not taken");
1297
connHandler.
_parserLock
.Wait(canReleaseFromAnyThread: false);
1304
connHandler.
_parserLock
.Release();
1456
Debug.Assert(_connHandler.
_parserLock
.ThreadMayHaveLock(), "Thread is writing without taking the connection lock");
7718
Debug.Assert(!_connHandler.ThreadHasParserLockForClose || _connHandler.
_parserLock
.ThreadMayHaveLock(), "Thread claims to have parser lock, but lock is not taken");
7721
_connHandler.
_parserLock
.Wait(canReleaseFromAnyThread:false);
7889
_connHandler.
_parserLock
.Release();
7910
Debug.Assert(_connHandler.
_parserLock
.ThreadMayHaveLock(), "Should not be calling into FailureCleanup without first taking the parser lock");
7954
Debug.Assert(needToTakeParserLock || _connHandler.
_parserLock
.ThreadMayHaveLock(), "Thread or caller claims to have connection lock, but lock is not taken");
7958
_connHandler.
_parserLock
.Wait(canReleaseFromAnyThread: !sync);
8017
_connHandler.
_parserLock
.Release();
8039
_connHandler.
_parserLock
.Release();
8053
Debug.Assert(firstCall || _connHandler.
_parserLock
.ThreadMayHaveLock(), "Connection lock not taken after the first call");
8070
_connHandler.
_parserLock
.Wait(canReleaseFromAnyThread:!sync);
8553
_connHandler.
_parserLock
.Release();
8628
_connHandler.
_parserLock
.Release();
8738
_connHandler.
_parserLock
.Release();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
593
_parser.Connection.
_parserLock
.Wait(canReleaseFromAnyThread: false, timeout: _waitForCancellationLockPollTimeout, lockTaken: ref hasParserLock);
604
_parser.Connection.
_parserLock
.Release();
3029
_parser.Connection.
_parserLock
.Wait(canReleaseFromAnyThread: false);
3046
_parser.Connection.
_parserLock
.Release();
3076
Debug.Assert(Parser.Connection.
_parserLock
.ThreadMayHaveLock(), "Thread is writing without taking the connection lock");