101 references to Lock
http2cat (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IIS.LongTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
InMemory.FunctionalTests (3)
EventSourceTests.cs (1)
426private readonly Lock _disposeLock = new();
Http2\Http2TestBase.cs (1)
134protected readonly Lock _abortedStreamIdsLock = new();
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Interop.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Authentication.Test (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Authorization.Test (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Components.Server (1)
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
16private readonly Lock _lock = new();
Microsoft.AspNetCore.Components.Server.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Components.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Diagnostics.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.RateLimiting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Routing.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\CertificatePathWatcher.cs (1)
20private readonly Lock _metadataLock = new();
Internal\Http\Http1OutputProducer.cs (1)
37private readonly Lock _contextLock = new();
Internal\Http\HttpProtocol.cs (1)
46private readonly Lock _abortLock = new();
Internal\Http2\FlowControl\InputFlowControl.cs (1)
28private readonly Lock _flowLock = new();
Internal\Http2\Http2FrameWriter.cs (2)
74private readonly Lock _writeLock = new(); 102private readonly Lock _windowUpdateLock = new();
Internal\Http2\Http2OutputProducer.cs (1)
31private readonly Lock _dataWriterLock = new();
Internal\Http2\Http2Stream.cs (1)
47private readonly Lock _completionLock = new();
Internal\Http3\Http3Connection.cs (2)
38private readonly Lock _sync = new(); 40private readonly Lock _protocolSelectionLock = new();
Internal\Http3\Http3ControlStream.cs (1)
37private readonly Lock _completionLock = new();
Internal\Http3\Http3FrameWriter.cs (1)
32private readonly Lock _writeLock = new();
Internal\Http3\Http3OutputProducer.cs (1)
27private readonly Lock _dataWriterLock = new();
Internal\Http3\Http3Stream.cs (1)
59private readonly Lock _completionLock = new();
Internal\HttpConnection.cs (1)
33private readonly Lock _protocolSelectionLock = new();
Internal\Infrastructure\KestrelConnection.cs (1)
13private readonly Lock _heartbeatLock = new();
Internal\Infrastructure\TimeoutControl.cs (2)
19private readonly Lock _readTimingLock = new(); 31private readonly Lock _writeTimingLock = new();
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
ConcurrentPipeWriterTests.cs (5)
28var sync = new Lock(); 92var sync = new Lock(); 189var sync = new Lock(); 273var sync = new Lock(); 341var sync = new Lock();
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Mocks\MockHttpContextFactory.cs (1)
12private readonly Lock _lock = new();
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnection.cs (1)
28private readonly Lock _shutdownLock = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicConnectionContext.cs (2)
23private readonly Lock _poolLock = new(); 25private readonly Lock _shutdownLock = new();
Internal\QuicStreamContext.cs (1)
43private readonly Lock _shutdownLock = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
26private readonly Lock _shutdownLock = new();
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (1)
18private readonly Lock _disposeLock = new();
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
18private static readonly Lock s_syncLock = new();
PresentationCore (2)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
18private static readonly Lock s_syncLock = new();
System\Windows\GlobalEventManager.cs (1)
473internal static readonly Lock Synchronized = new();
PresentationFramework (2)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
18private static readonly Lock s_syncLock = new();
System\Windows\Data\CollectionView.cs (1)
2128private readonly Lock _changeLogLock = new();
Sockets.BindTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
Sockets.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11private readonly Lock _lock = new();
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
56: this()
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (2)
58private static readonly Lock s_idManagerLock = new Lock(); 624private readonly Lock _freeIdsLock = new Lock();
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
175internal Lock SharedLock { get; } = new Lock();
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (1)
23private static readonly Lock s_timerEventLock = new Lock();
System.Private.Windows.Core (1)
System\Private\Windows\Ole\DataFormatsCore.cs (1)
15private static readonly Lock s_internalSyncObject = new();
System.Private.Windows.Core.TestUtilities (1)
NoAssertContext.cs (1)
21private static readonly Lock s_lock = new();
System.Windows.Forms (26)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
36private readonly Lock _lock = new();
System\Windows\Forms\Application.cs (1)
44private static readonly Lock s_internalSyncObject = new();
System\Windows\Forms\Application.ThreadContext.cs (1)
27private readonly Lock _marshallingControlLock = new();
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
21private readonly Lock _invokeSyncObject = new();
System\Windows\Forms\Controls\ImageList\ImageList.NativeImageList.cs (1)
19private static readonly Lock s_syncLock = new();
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (1)
16private static readonly Lock s_syncObject = new();
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
66private readonly Lock _internalSyncObject = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
66private readonly Lock _lock = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (1)
23private readonly Lock _lock = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
34private static readonly Lock s_internalSyncObject = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (1)
17private readonly Lock _lock = new();
System\Windows\Forms\DataBinding\Command.cs (1)
10private static readonly Lock s_internalSyncObject = new();
System\Windows\Forms\Form.cs (2)
105private static readonly Lock s_internalSyncObject = new(); 173private readonly Lock _lock = new();
System\Windows\Forms\NativeWindow.cs (3)
40private static readonly Lock s_internalSyncObject = new(); 41private static readonly Lock s_createWindowSyncObject = new(); 43private readonly Lock _lock = new();
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
33private static readonly Lock s_wcInternalSyncObject = new();
System\Windows\Forms\NotifyIcon.cs (1)
34private readonly Lock _lock = new();
System\Windows\Forms\OwnerDrawPropertyBag.cs (1)
16private static readonly Lock s_internalSyncObject = new();
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
15private readonly Lock _lock = new();
System\Windows\Forms\Rendering\FontCache.cs (1)
24private readonly Lock _lock = new();
System\Windows\Forms\Screen.cs (1)
38private static readonly Lock s_syncLock = new(); // used to lock this class before syncing to SystemEvents
System\Windows\Forms\SendKeys\SendKeys.cs (1)
88private static readonly Lock s_lock = new();
System\Windows\Forms\Timer.cs (2)
30private readonly Lock _lock = new(); 195private readonly Lock _lock = new();
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MenuCommandService.cs (1)
20private readonly Lock _commandGroupsLock = new();
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
34private readonly Lock _lock = new();
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
11private static readonly Lock s_lock = new();