359 references to Monitor
mscorlib (87)
system\_localdatastore.cs (2)
208Monitor.Enter(m_Manager, ref tookLock); 242Monitor.Exit(m_Manager);
system\_localdatastoremgr.cs (14)
105Monitor.Enter(this, ref tookLock); 112Monitor.Exit(this); 127Monitor.Enter(this, ref tookLock); 134Monitor.Exit(this); 150Monitor.Enter(this, ref tookLock); 206Monitor.Exit(this); 220Monitor.Enter(this, ref tookLock); 232Monitor.Exit(this); 247Monitor.Enter(this, ref tookLock); 261Monitor.Exit(this); 276Monitor.Enter(this, ref tookLock); 283Monitor.Exit(this); 297Monitor.Enter(this, ref tookLock); 312Monitor.Exit(this);
system\Collections\Concurrent\ConcurrentDictionary.cs (4)
831Monitor.Enter(tables.m_locks[lockNo], ref lockTaken); 921Monitor.Exit(tables.m_locks[lockNo]); 2000Monitor.Enter(locks[i], ref lockTaken); 2023Monitor.Exit(m_tables.m_locks[i]);
system\diagnostics\eventing\eventsource.cs (6)
3017Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 4484Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 5261Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 5329Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 5577Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 5678Contract.Assert(Monitor.IsEntered(EventListener.EventListenersLock));
system\environment.cs (4)
154Monitor.Enter(rh, ref userData.m_lockWasTaken); 239Monitor.Exit(rh); 1269Monitor.Enter(Environment.InternalSyncObject, ref tookLock); 1280Monitor.Exit(Environment.InternalSyncObject);
system\Lazy.cs (2)
382Monitor.Enter(threadSafeObj, ref lockTaken); 406Monitor.Exit(threadSafeObj);
system\rttype.cs (4)
468Monitor.Enter(this, ref lockTaken); 535Monitor.Exit(this); 1840Monitor.Enter(s_methodInstantiationsLock, ref lockTaken); 1861Monitor.Exit(s_methodInstantiationsLock);
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (6)
121MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod( "Enter", MonitorEnterParamTypes, null ); 126MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null ); 273MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod("Enter", MonitorEnterParamTypes, null); 278MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null ); 611MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod("Enter", MonitorEnterParamTypes, null); 617MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null );
system\runtime\remoting\activationservices.cs (4)
93Monitor.Enter(configLock, ref fLocked); 130Monitor.Exit(configLock); 897Monitor.Enter(configLock, ref fLocked); 923Monitor.Exit(configLock);
system\runtime\remoting\channelservices.cs (6)
130Monitor.Enter(s_channelLock, ref fLocked); 220Monitor.Exit(s_channelLock); 238Monitor.Enter(s_channelLock, ref fLocked); 290Monitor.Exit(s_channelLock); 550Monitor.Enter(s_channelLock, ref fLocked); 557Monitor.Exit(s_channelLock);
system\runtime\remoting\remotingservices.cs (2)
307Monitor.Enter(configLock, ref fLocked); 324Monitor.Exit(configLock);
system\runtime\remoting\serveridentity.cs (10)
88Monitor.Enter(this, ref fLocked); 98Monitor.Exit(this); 110Monitor.Enter(this, ref fLocked); 117Monitor.Exit(this); 206Monitor.Enter(this, ref fLocked); 223Monitor.Exit(this); 363Monitor.Enter(this, ref fLocked); 373Monitor.Exit(this); 392Monitor.Enter(this, ref fLocked); 402Monitor.Exit(this);
system\runtime\remoting\synchronizeddispatch.cs (2)
372Monitor.Pulse(nextWork); 450Monitor.Wait(work);
system\sharedstatics.cs (6)
53Monitor.Enter(_sharedStatics, ref tookLock); 62Monitor.Exit(_sharedStatics); 82Monitor.Enter(_sharedStatics, ref tookLock); 92Monitor.Exit(_sharedStatics); 111Monitor.Enter(_sharedStatics, ref tookLock); 118Monitor.Exit(_sharedStatics);
system\threading\ManualResetEventSlim.cs (3)
346Monitor.PulseAll(m_lock); 669if (!Monitor.Wait(m_lock, realMillisecondsTimeout)) 755Monitor.PulseAll(mre.m_lock); // awaken all waiters
system\threading\SemaphoreSlim.cs (9)
356Monitor.Enter(m_lockObj, ref lockTaken); 425Monitor.Exit(m_lockObj); 469if (!Monitor.Wait(m_lockObj, remainingWaitMilliseconds)) 642Contract.Assert(Monitor.IsEntered(m_lockObj), "Requires the lock be held"); 672Contract.Assert(Monitor.IsEntered(m_lockObj), "Requires the lock be held"); 698Contract.Assert(Monitor.IsEntered(m_lockObj), "Requires the lock be held"); 790Monitor.Pulse(m_lockObj); 794Monitor.PulseAll(m_lockObj); 892Monitor.PulseAll(semaphore.m_lockObj); //wake up all waiters.
system\threading\SpinLock.cs (1)
35/// cref="System.Threading.Monitor"/>, in size or due to garbage collection pressure, is overly
system\threading\SpinWait.cs (1)
65/// <see cref="System.Threading.Monitor"/>. For most purposes where spin waiting is required, however,
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
758Contract.Assert(Monitor.IsEntered(syncObj) == held, "The locking scheme was not correctly followed.");
PresentationFramework (2)
src\Framework\MS\Internal\Utility\MonitorWrapper.cs (2)
28Monitor.Enter(_syncRoot); 37Monitor.Exit(_syncRoot);
SMSvcHost (2)
TD.Designer.cs (2)
804System.Threading.Monitor.Enter(syncLock); 816System.Threading.Monitor.Exit(syncLock);
System (54)
net\System\Net\_AutoWebProxyScriptEngine.cs (4)
106Monitor.Wait(this); 109Monitor.Pulse(this); // This is to ensure that a Pulse meant to let someone take the lock isn't lost. 134Monitor.Pulse(this); 151Monitor.PulseAll(this);
net\System\Net\_AutoWebProxyScriptWrapper.cs (6)
583Monitor.Enter(s_AppDomains.SyncRoot, ref lockHeld); 660Monitor.Exit(s_AppDomains.SyncRoot); 731Monitor.Enter(s_AppDomains.SyncRoot, ref lockHeld); 743Monitor.Exit(s_AppDomains.SyncRoot); 760Monitor.Enter(s_AppDomains.SyncRoot, ref lockHeld); 767Monitor.Exit(s_AppDomains.SyncRoot);
net\System\Net\connectionpool.cs (2)
760Monitor.TryEnter(pooledStream, ref locked); 773Monitor.Exit(pooledStream);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
110Debug.Assert(!Monitor.IsEntered(s_globalLock), "Should not invoke user callback while holding globalLock"); 212Debug.Assert(!Monitor.IsEntered(s_globalLock), "Should not invoke user callback while holding globalLock");
net\System\Net\WebSockets\WebSocketBase.cs (19)
786Monitor.Enter(m_ThisLock, ref lockTaken); 833Monitor.Enter(m_ThisLock, ref lockTaken); 849Monitor.Enter(m_ThisLock, ref lockTaken); 904Monitor.Enter(m_ThisLock, ref lockTaken); 953Monitor.Enter(m_ThisLock, ref lockTaken); 1062Monitor.Enter(lockObject, ref thisLockTaken); 1077Monitor.Enter(SessionHandle, ref sessionHandleLockTaken); 1078Monitor.Enter(m_ThisLock, ref thisLockTaken); 1096Monitor.Exit(m_ThisLock); 1102Monitor.Exit(SessionHandle); 1178Monitor.Exit(lockObject); 1489Monitor.Enter(m_ThisLock, ref thisLockTaken); 1547Monitor.Enter(thisPtr.SessionHandle, ref lockTaken); 1574Monitor.Enter(thisPtr.SessionHandle, ref lockTaken); 1655Monitor.Enter(m_WebSocket.SessionHandle, ref sessionHandleLockTaken); 1766Monitor.Enter(m_WebSocket.SessionHandle, ref sessionHandleLockTaken); 1786Monitor.Enter(m_WebSocket.SessionHandle, ref sessionHandleLockTaken); 1834Monitor.Enter(m_WebSocket.SessionHandle, ref sessionHandleLockTaken); 1873Monitor.Enter(m_WebSocket.SessionHandle, ref sessionHandleLockTaken);
services\io\system\io\FileSystemWatcher.cs (4)
887System.Threading.Monitor.Pulse(this); 902System.Threading.Monitor.Pulse(this); 1104System.Threading.Monitor.Wait(this); 1108System.Threading.Monitor.Wait(this, timeout, true);
services\monitoring\system\diagnosticts\PerformanceCounter.cs (2)
480Monitor.Enter(InstanceLockObject, ref tookLock); 543Monitor.Exit(InstanceLockObject);
sys\system\collections\concurrent\ConcurrentBag.cs (15)
164Monitor.Enter(list, ref lockTaken); 173Monitor.Exit(list); 249Monitor.Enter(list, ref lockTaken); 261Monitor.Exit(list); 282Monitor.Exit(list); 345Contract.Assert(Monitor.IsEntered(GlobalListsLock)); 764Contract.Assert(!Monitor.IsEntered(GlobalListsLock)); 767Monitor.Enter(GlobalListsLock, ref lockTaken); 789Monitor.Exit(GlobalListsLock); 798Contract.Assert(Monitor.IsEntered(GlobalListsLock)); 807Monitor.Enter(currentList, ref lockTaken); 833Monitor.Exit(currentList); 844Contract.Assert(Monitor.IsEntered(GlobalListsLock)); 867Contract.Assert(Monitor.IsEntered(GlobalListsLock)); 889Contract.Assert(Monitor.IsEntered(GlobalListsLock));
System.Activities (4)
EtwTrackingParticipantTrackRecords.Designer.cs (2)
872System.Threading.Monitor.Enter(syncLock); 884System.Threading.Monitor.Exit(syncLock);
TD.Designer.cs (2)
2344System.Threading.Monitor.Enter(syncLock); 2356System.Threading.Monitor.Exit(syncLock);
System.Activities.DurableInstancing (8)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (6)
161Monitor.Enter(ThisLock, ref lockTaken); 166Monitor.Pulse(ThisLock); 167Monitor.Exit(ThisLock); 179Monitor.Enter(ThisLock, ref lockTaken); 185Monitor.Wait(ThisLock); 189Monitor.Exit(ThisLock);
TD.Designer.cs (2)
494System.Threading.Monitor.Enter(syncLock); 506System.Threading.Monitor.Exit(syncLock);
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
396locked = Monitor.TryEnter(_dictionary._sync); 403Monitor.Exit(_dictionary._sync);
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (3)
81Monitor.Wait(this.thisLock); 313Monitor.Pulse(this.Parent.thisLock); 320Monitor.Pulse(this.Parent.thisLock);
System.Configuration (2)
System\Configuration\ClientConfigurationSystem.cs (2)
85Monitor.Wait(this); 159Monitor.PulseAll(this);
System.Core (7)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (4)
364Monitor.Pulse(locks[i]); 404Monitor.Wait(bufferLock); 421Monitor.Pulse(bufferLock); 483Monitor.Pulse(bufferLock);
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (3)
131Monitor.Pulse(m_bufferLock); 141Monitor.Wait(m_bufferLock); 209Monitor.Pulse(m_bufferLock);
System.Data (26)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
396locked = Monitor.TryEnter(_dictionary._sync); 403Monitor.Exit(_dictionary._sync);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (3)
81Monitor.Wait(this.thisLock); 313Monitor.Pulse(this.Parent.thisLock); 320Monitor.Pulse(this.Parent.thisLock);
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
1707Monitor.TryEnter(obj, ref locked); 1723Monitor.Exit(obj);
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (2)
227Monitor.TryEnter(_itemLock, LockPollTime, ref lockObtained); 233Monitor.Exit(_itemLock);
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (8)
74Monitor.Enter(s_dllLock, ref lockTaken); 93Monitor.Exit(s_dllLock); 116Monitor.Enter(s_dllLock, ref lockTaken); 133Monitor.Exit(s_dllLock); 157Monitor.Enter(s_dllLock, ref lockTaken); 175Monitor.Exit(s_dllLock); 303Monitor.Enter(s_configLock, ref lockTaken); 328Monitor.Exit(s_configLock);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (7)
226Monitor.Enter(semaphore); // semaphore is used as lock object, no relation to SemaphoreSlim.Wait/Release methods 230Monitor.Exit(semaphore); 242Monitor.TryEnter(semaphore, timeout, ref hasMonitor); // semaphore is used as lock object, no relation to SemaphoreSlim.Wait/Release methods 247Monitor.Exit(semaphore); 264Monitor.Exit(semaphore); 275Monitor.Exit(semaphore); 288return Monitor.IsEntered(semaphore) || semaphore.CurrentCount == 0;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
578Monitor.TryEnter(this, _waitForCancellationLockPollTimeout, ref hasLock); 615Monitor.Exit(this);
System.Data.Entity (4)
System\Data\Metadata\ObjectLayer\LockedAssemblyCache.cs (4)
27Monitor.Enter(_lockObject); 37Monitor.Exit(_lockObject); 46Monitor.TryEnter(_lockObject, ref entered); 49Monitor.Exit(_lockObject);
System.IdentityModel (2)
TD.Designer.cs (2)
225System.Threading.Monitor.Enter(syncLock); 237System.Threading.Monitor.Exit(syncLock);
System.IO.Log (4)
System\IO\Log\FileRecordSequence.cs (2)
491Monitor.Wait(this.syncTailPinned); 533Monitor.PulseAll(this.syncTailPinned);
System\IO\Log\OverlappedAsyncResult.cs (2)
111Monitor.PulseAll(this.syncRoot); 130Monitor.Wait(this.syncRoot);
System.Messaging (2)
System\Messaging\MessageQueueTransaction.cs (2)
123Monitor.Enter(this); 195Monitor.Exit(this);
System.Runtime.Serialization (2)
TD.Designer.cs (2)
512System.Threading.Monitor.Enter(syncLock); 524System.Threading.Monitor.Exit(syncLock);
System.ServiceModel (12)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (4)
600Monitor.Pulse(this.ThisLock); 630Monitor.Wait(ThisLock); 778Monitor.Pulse(buffer.ThisLock); 790Monitor.Wait(ThisLock);
System\ServiceModel\Channels\HttpPipeline.cs (2)
450Monitor.TryEnter(this.ThisLock, TimeoutHelper.ToMilliseconds(helper.RemainingTime()), ref lockTaken); 462Monitor.Exit(this.ThisLock);
System\ServiceModel\Channels\Msmq.cs (2)
130Monitor.Enter(xpSendLock, ref lockHeld); 136Monitor.Exit(xpSendLock);
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (2)
25Monitor.Enter(this.bufferLock, ref lockHeld); 44Monitor.Exit(this.bufferLock);
TD.Designer.cs (2)
5060System.Threading.Monitor.Enter(syncLock); 5072System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Activation (2)
TD.Designer.cs (2)
725System.Threading.Monitor.Enter(syncLock); 737System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Activities (2)
TD.Designer.cs (2)
638System.Threading.Monitor.Enter(syncLock); 650System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Channels (2)
TD.Designer.cs (2)
167System.Threading.Monitor.Enter(syncLock); 179System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Discovery (2)
TD.Designer.cs (2)
743System.Threading.Monitor.Enter(syncLock); 755System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Internals (8)
System\Runtime\AsyncWaitHandle.cs (4)
125if (!Monitor.Wait(syncObject, Timeout.Infinite)) 132if (!Monitor.Wait(syncObject, timeout)) 166Monitor.PulseAll(syncObject); 174Monitor.Pulse(syncObject);
System\Runtime\InternalBufferManager.cs (2)
324Monitor.TryEnter(this.tuningLock, ref lockHeld); 338Monitor.Exit(this.tuningLock);
TraceCore.Designer.cs (2)
714System.Threading.Monitor.Enter(syncLock); 726System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Routing (2)
TD.Designer.cs (2)
928System.Threading.Monitor.Enter(syncLock); 940System.Threading.Monitor.Exit(syncLock);
System.ServiceModel.Web (2)
TD.Designer.cs (2)
133System.Threading.Monitor.Enter(syncLock); 145System.Threading.Monitor.Exit(syncLock);
System.Transactions (74)
System\Transactions\CommittableTransaction.cs (2)
150} while (System.Threading.Monitor.Wait(this.internalTransaction)); 228} while (System.Threading.Monitor.Wait(this.internalTransaction));
System\Transactions\DurableEnlistmentState.cs (4)
214Monitor.Exit( enlistment.Transaction ); 239Monitor.Enter(enlistment.Transaction); 276Monitor.Exit( enlistment.Transaction ); 306Monitor.Enter(enlistment.Transaction);
System\Transactions\EnlistmentState.cs (14)
176Monitor.Exit( enlistment.SyncRoot ); 185Monitor.Enter(enlistment.SyncRoot); 193Monitor.Exit( enlistment.SyncRoot ); 202Monitor.Enter(enlistment.SyncRoot); 210Monitor.Exit( enlistment.SyncRoot ); 219Monitor.Enter(enlistment.SyncRoot); 227Monitor.Exit( enlistment.SyncRoot ); 236Monitor.Enter(enlistment.SyncRoot); 244Monitor.Exit( enlistment.SyncRoot ); 253Monitor.Enter(enlistment.SyncRoot); 261Monitor.Exit( enlistment.SyncRoot ); 270Monitor.Enter(enlistment.SyncRoot); 278Monitor.Exit( enlistment.SyncRoot ); 287Monitor.Enter(enlistment.SyncRoot);
System\Transactions\InternalTransaction.cs (2)
453System.Threading.Monitor.Exit( this ); // Don't hold a lock calling user code. 462System.Threading.Monitor.Enter(this);
System\Transactions\Oletx\OleTxTransaction.cs (2)
1011Monitor.Exit(localPhase0VolatileContainer); 1022Monitor.Enter(localPhase0VolatileContainer);
System\Transactions\Oletx\OletxTransactionManager.cs (3)
128System.Threading.Monitor.Enter(OletxTransactionManager.proxyShimFactory); 482System.Threading.Monitor.Exit(OletxTransactionManager.proxyShimFactory); 496System.Threading.Monitor.Exit(OletxTransactionManager.proxyShimFactory);
System\Transactions\TransactionState.cs (27)
2070System.Threading.Monitor.Pulse( tx ); 2417System.Threading.Monitor.Exit( tx ); 2432System.Threading.Monitor.Enter(tx); 2449System.Threading.Monitor.Exit( tx ); 2464System.Threading.Monitor.Enter(tx); 2483System.Threading.Monitor.Exit( tx ); 2508System.Threading.Monitor.Enter(tx); 2527System.Threading.Monitor.Exit( tx ); 2552System.Threading.Monitor.Enter(tx); 2569System.Threading.Monitor.Exit( tx ); 2578System.Threading.Monitor.Enter(tx); 2663System.Threading.Monitor.Exit( tx ); 2679System.Threading.Monitor.Enter(tx); 2710System.Threading.Monitor.Exit( tx ); 2726System.Threading.Monitor.Enter(tx); 3317System.Threading.Monitor.Exit( tx ); 3327System.Threading.Monitor.Enter(tx); 3433System.Threading.Monitor.Exit( tx ); 3443System.Threading.Monitor.Enter(tx); 3553System.Threading.Monitor.Exit( tx ); 3563System.Threading.Monitor.Enter(tx); 3596System.Threading.Monitor.Exit( tx ); 3606System.Threading.Monitor.Enter(tx); 5484System.Threading.Monitor.Exit( tx ); 5503System.Threading.Monitor.Enter(tx); 5524System.Threading.Monitor.Exit( tx ); 5542System.Threading.Monitor.Enter(tx);
System\Transactions\TransactionTable.cs (2)
98Monitor.Enter(this.SyncRoot); 137Monitor.Exit( this.SyncRoot );
System\Transactions\VolatileEnlistmentMultiplexing.cs (8)
119System.Threading.Monitor.TryEnter(demux.transaction, 250, ref tookLock); 140System.Threading.Monitor.Exit(demux.transaction); 179System.Threading.Monitor.TryEnter(demux.transaction, 250, ref tookLock); 200System.Threading.Monitor.Exit(demux.transaction); 239System.Threading.Monitor.TryEnter(demux.transaction, 250, ref tookLock); 260System.Threading.Monitor.Exit(demux.transaction); 299System.Threading.Monitor.TryEnter(demux.transaction, 250, ref tookLock); 320System.Threading.Monitor.Exit(demux.transaction);
System\Transactions\VolatileEnlistmentState.cs (10)
337Monitor.Exit( enlistment.Transaction ); 354Monitor.Enter(enlistment.Transaction); 430Monitor.Exit( enlistment.Transaction ); 446Monitor.Enter(enlistment.Transaction); 592Monitor.Exit( enlistment.Transaction ); 609Monitor.Enter(enlistment.Transaction); 643Monitor.Exit( enlistment.Transaction ); 661Monitor.Enter(enlistment.Transaction); 683Monitor.Exit( enlistment.Transaction ); 701Monitor.Enter(enlistment.Transaction);
System.Web (13)
CachedPathData.cs (3)
305Monitor.PulseAll(dataAdd); 331Monitor.PulseAll(dataAdd); 537Monitor.Wait(this);
Compilation\CompilationLock.cs (2)
192Monitor.Enter(BuildManager.TheBuildManager); 201Monitor.Exit(BuildManager.TheBuildManager);
HttpApplication.cs (2)
572Monitor.Enter(_stepManager, ref locked); 577Monitor.Exit(_stepManager);
LegacyAspNetSynchronizationContext.cs (2)
209Monitor.Enter(_application); 213Monitor.Exit(_application);
Util\ReadWriteObjectLock.cs (4)
33Monitor.Wait(this); 50Monitor.PulseAll(this); 59Monitor.Wait(this); 75Monitor.PulseAll(this);
System.Workflow.Runtime (12)
Hosting\DefaultWorkflowSchedulerService.cs (2)
184Monitor.Wait(waitingQueue); 296Monitor.Pulse(waitingQueue);
Lock.cs (8)
136Monitor.TryEnter(this, ref lockHeld); 148Monitor.Exit(this); 162Monitor.Exit(this); 211Monitor.Enter(this.m_lock); 222Monitor.Exit(this.m_lock); 230Monitor.Pulse(this.m_lock); 235Monitor.Wait(this.m_lock); 248Monitor.Exit(this.m_lock);
WorkflowDefinitionDispenser.cs (2)
622Monitor.Enter(this._syncObj); 630Monitor.Exit(this._syncObj);
System.WorkflowServices (2)
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (2)
420Monitor.Wait(this.lockObject); 436Monitor.PulseAll(this.lockObject);
System.Xaml.Hosting (2)
TD.Designer.cs (2)
114System.Threading.Monitor.Enter(syncLock); 126System.Threading.Monitor.Exit(syncLock);
System.Xml (11)
System\Xml\Schema\Preprocessor.cs (3)
124Monitor.Enter(listSchema); 146Monitor.Exit(listSchema); 151Monitor.Exit(listSchema); //Release locks on all schema objects
System\Xml\Schema\XmlSchemaSet.cs (8)
359Monitor.TryEnter(InternalSyncObject, ref thisLockObtained); 361Monitor.TryEnter(schemas.InternalSyncObject, ref schemasLockObtained); 366Monitor.Exit(InternalSyncObject); //Give up this lock and try both again 407Monitor.Exit(InternalSyncObject); 410Monitor.Exit(schemas.InternalSyncObject); 546Monitor.Enter(currentSchema); 584Monitor.Exit(currentSchema); 588Monitor.Exit(currentSchema);
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (2)
147Monitor.TryEnter(referencesCacheLock, ref acquiredLock); 161Monitor.Exit(referencesCacheLock);