119 references to Write
dotnet (4)
Commands\Test\MTP\TestApplication.cs (4)
94Volatile.Write(ref _standardOutputCollector, stdOutBuilder); 95Volatile.Write(ref _standardErrorCollector, stdErrBuilder); 180Volatile.Write(ref _standardOutputCollector, null); 181Volatile.Write(ref _standardErrorCollector, null);
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
ILCompiler.ReadyToRun (1)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
746Volatile.Write(ref _typeRefsInCompilationModuleSet, typeRefsInCompilationModuleSet);
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\LockFreeReaderHashtable.cs (2)
534Volatile.Write(ref hashTableLocal[tableIndex], value); 546Volatile.Write(ref hashTableLocal[tableIndex], default(TValue)!);
Microsoft.AspNetCore.DataProtection (7)
KeyManagement\KeyRing.cs (1)
87Volatile.Write(ref _encryptor, encryptor);
KeyManagement\KeyRingBasedDataProtector.cs (1)
361Volatile.Write(ref _aadTemplate, newTemplate);
KeyManagement\KeyRingProvider.cs (5)
295Volatile.Write(ref _cacheableKeyRing, existingCacheableKeyRing.WithTemporaryExtendedLifetime(utcNow)); 304Volatile.Write(ref _cacheableKeyRing, newCacheableKeyRing); 395Volatile.Write(ref _cacheableKeyRing, newCacheableKeyRing); 496Volatile.Write(ref _cacheableKeyRing, newCacheableKeyRing); 506Volatile.Write(ref _cacheableKeyRing, existingCacheableKeyRing.WithTemporaryExtendedLifetime(utcNow));
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelector.cs (1)
58Volatile.Write(ref _cache, cache);
Microsoft.AspNetCore.Server.IIS (3)
Core\IO\AsyncIOEngine.cs (3)
235Volatile.Write(ref _cachedAsyncReadOperation, operation); 240Volatile.Write(ref _cachedAsyncWriteOperation, operation); 245Volatile.Write(ref _cachedAsyncFlushOperation, operation);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\DateHeaderValueManager.cs (1)
52Volatile.Write(ref _dateValues, dateValues);
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
183Volatile.Write(ref _userIdentifier, value); 222Volatile.Write(ref _userIdentifier, userIdentifier);
Microsoft.Build (1)
Evaluation\LazyItemEvaluator.cs (1)
158Volatile.Write(ref _normalizedItemValue, normalizedItemValue);
Microsoft.CodeAnalysis (4)
CodeGen\TokenMap.cs (1)
80Volatile.Write(ref _items, items);
InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
InternalUtilities\TextKeyedCache.cs (1)
228Volatile.Write(ref arr[idx].Entry, e);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
61Volatile.Write(ref _lastParsed, lastParsed);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
Microsoft.CodeAnalysis.Features (4)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (3)
52Volatile.Write(ref s_cachedIndexMap, null); 53Volatile.Write(ref s_cachedFilterIndexMap, null); 54Volatile.Write(ref s_stringTable, null);
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
61Volatile.Write(ref _lastParsed, lastParsed);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
90Volatile.Write(ref _stateDoNotAccessDirectly, state);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.ImmutableCacheItem.cs (1)
35Volatile.Write(ref _sharedDefault, obj);
Microsoft.Extensions.Diagnostics (1)
Tracing\DefaultActivitySourceFactory.cs (1)
250Volatile.Write(ref _state, newState);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (2)
379Volatile.Write(ref arr[idx].Text, text); 455Volatile.Write(ref arr[idx].Text, text);
System.CommandLine (1)
Invocation\ProcessTerminationHandler.cs (1)
23internal Task<int> StartedHandler { set => Volatile.Write(ref _startedHandler, value); }
System.Console (16)
System\Console.cs (16)
59Volatile.Write(ref s_in, ConsolePal.GetOrCreateReader()); 82Volatile.Write(ref s_inputEncoding, ConsolePal.InputEncoding); 98Volatile.Write(ref s_inputEncoding, (Encoding)value.Clone()); 103Volatile.Write(ref s_in, null); 119Volatile.Write(ref s_outputEncoding, ConsolePal.OutputEncoding); 144Volatile.Write(ref s_out, null!); 149Volatile.Write(ref s_error, null!); 152Volatile.Write(ref s_outputEncoding, (Encoding)value.Clone()); 209Volatile.Write(ref s_out, CreateOutputWriter(ConsolePal.OpenStandardOutput())); 229Volatile.Write(ref s_error, CreateOutputWriter(ConsolePal.OpenStandardError())); 264Volatile.Write(ref _isStdInRedirected, new StrongBox<bool>(ConsolePal.IsInputRedirectedCore())); 279Volatile.Write(ref _isStdOutRedirected, new StrongBox<bool>(ConsolePal.IsOutputRedirectedCore())); 294Volatile.Write(ref _isStdErrRedirected, new StrongBox<bool>(ConsolePal.IsErrorRedirectedCore())); 713Volatile.Write(ref s_in, newIn); 733Volatile.Write(ref s_out, newOut); 750Volatile.Write(ref s_error, newError);
System.Data.OleDb (1)
ColumnBinding.cs (1)
1048Volatile.Write(ref delegateInstance, mi.CreateDelegate(typeof(Func<object, IntPtr>)));
System.Formats.Nrbf (1)
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (1)
203Volatile.Write(ref s_baseAmbiguousDstDateTime, baseDateTime); // it's ok if two threads race here
System.IO.Pipelines (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
124Volatile.Write(ref _tail._next, newSegment); // ensure segment not published until item is fully stored
System.IO.Pipes (1)
Microsoft\Win32\SafeHandles\SafePipeHandle.Unix.cs (1)
90Volatile.Write(ref _pipeSocket, null);
System.Linq.Expressions (1)
System\Dynamic\Utils\CacheDict.cs (1)
81Volatile.Write(ref _entries[idx], new Entry(hash, key, value));
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
338Volatile.Write(ref waiter.ConnectionCancellationTokenSource, null);
System.Net.Requests (1)
System\Net\WebRequest.cs (1)
371Volatile.Write(ref s_prefixList, value);
System.Net.Sockets (7)
System\Net\Sockets\Socket.Unix.cs (1)
159Volatile.Write(ref _handle, newHandle);
System\Net\Sockets\SocketAsyncContext.Unix.cs (6)
52Volatile.Write(ref _cachedAcceptOperation, operation); // benign race condition 61Volatile.Write(ref _cachedBufferMemoryReceiveOperation, operation); // benign race condition 70Volatile.Write(ref _cachedBufferListReceiveOperation, operation); // benign race condition 79Volatile.Write(ref _cachedBufferMemorySendOperation, operation); // benign race condition 88Volatile.Write(ref _cachedBufferListSendOperation, operation); // benign race condition 1302Volatile.Write(ref _asyncEngine, engine);
System.Private.CoreLib (24)
Internal\Runtime\Augments\RuntimeAugments.cs (2)
274Volatile.Write<object>(ref Unsafe.As<IntPtr, object>(ref *(IntPtr*)address), fieldValue); 285Volatile.Write<object>(ref Unsafe.As<byte, object>(ref address), fieldValue);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\LockFreeReaderHashtable.cs (2)
534Volatile.Write(ref hashTableLocal[tableIndex], value); 546Volatile.Write(ref hashTableLocal[tableIndex], default(TValue)!);
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
124Volatile.Write(ref _tail._next, newSegment); // ensure segment not published until item is fully stored
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (1)
76Volatile.Write(ref _fileHandle._reusableThreadPoolValueTaskSource, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (7)
486Volatile.Write(ref bucket, curr._next); 685Volatile.Write(ref bucket, newNode); 982Volatile.Write(ref bucket, newNode); 1006Volatile.Write(ref bucket, resultNode); 2442Volatile.Write(ref bucket, newNode); 2472Volatile.Write(ref bucket, resultNode); 2628Volatile.Write(ref bucket, curr._next);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs (1)
53Volatile.Write(ref m_innerTable, newTable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (2)
514Volatile.Write(ref s_casingTable[pageNumber], casingTable); 555Volatile.Write(ref s_lowerCasingTable[pageNumber], i == 256 ? NoCasingPage : casingTable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Opcode.cs (1)
118Volatile.Write(ref nameCache[idx], name);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (1)
373Volatile.Write(ref slot, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (1)
264Volatile.Write(ref target, valueFactory());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
630public static void VolatileWrite([NotNullIfNotNull(nameof(value))] ref object? address, object? value) => Volatile.Write(ref address, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
250Volatile.Write(ref m_array[i & m_mask], null);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.TypeComponentsCache.cs (1)
75Volatile.Write(ref _nameAgnosticQueryCaches[index], result);
System\Threading\SyncTable.cs (1)
186Volatile.Write(ref s_entries, newEntries);
System\Threading\Thread.NativeAot.cs (1)
494Volatile.Write(ref s_allDone, new ManualResetEvent(false));
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\RuntimeTypeInfo.TypeComponentsCache.cs (2)
70Volatile.Write(ref _nameAgnosticQueryCaches[index], newResult); 78Volatile.Write(ref _nameAgnosticQueryCaches[index], newResult);
System.Text.Encodings.Web (2)
System\Text\Unicode\UnicodeRanges.cs (2)
33Volatile.Write(ref range, new UnicodeRange(0, 0)); 41Volatile.Write(ref range, UnicodeRange.Create(first, last));
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
172Volatile.Write(ref AttributeProviderFactory, null); 182Volatile.Write(ref AttributeProviderFactory, null);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
897Volatile.Write(ref ConstructorAttributeProviderFactory, null); 907Volatile.Write(ref ConstructorAttributeProviderFactory, null);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (3)
114Volatile.Write(ref array, newArray); 412Volatile.Write(ref _nfaDelta[nfaOffset], targets); 444Volatile.Write(ref _capturingNfaDelta[offset], targets);
System.Threading.Channels (3)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
124Volatile.Write(ref _tail._next, newSegment); // ensure segment not published until item is fully stored
System\Threading\Channels\AsyncOperation.cs (2)
485Volatile.Write(ref _continuation, s_availableSentinel); 541Volatile.Write(ref _continuation, s_availableSentinel);
System.Threading.Tasks.Dataflow (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
124Volatile.Write(ref _tail._next, newSegment); // ensure segment not published until item is fully stored
System.Xaml (1)
System\Xaml\Schema\TypeBits.cs (1)
102Volatile.Write(ref _value, newValue);