36 references to Read
mscorlib (26)
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
511Node n = Volatile.Read<Node>(ref tables.m_buckets[bucketNo]); 792Node current = Volatile.Read<Node>(ref buckets[i]);
system\Lazy.cs (1)
377object threadSafeObj = Volatile.Read(ref m_threadSafeObj);
system\reflection\emit\opcode.cs (1)
265String name = Volatile.Read(ref nameCache[idx]);
system\rttype.cs (3)
5423ActivatorCacheEntry ace = Volatile.Read(ref cache[index]); 6093Table table = Volatile.Read(ref m_Table); 6107K hit = Volatile.Read(ref keys[index]);
system\runtime\remoting\trackingservices.cs (3)
158Volatile.Read(ref temp[i]).MarshaledObject(obj, or); 172Volatile.Read(ref temp[i]).UnmarshaledObject(obj, or); 186Volatile.Read(ref temp[i]).DisconnectedObject(obj);
system\security\permissiontoken.cs (1)
511PermissionToken token = Volatile.Read(ref m_builtIn[index]);
system\security\util\tokenbasedset.cs (4)
120e.Current = Volatile.Read(ref m_Set[e.Index]); 261return Volatile.Read(ref m_Set[index]); 295if (index < m_Set.Length && (ret = Volatile.Read(ref m_Set[index])) != null) 308m_Obj = Volatile.Read(ref m_Set[m_maxIndex]);
system\threading\CancellationTokenSource.cs (3)
680var callbacks = Volatile.Read<SparselyPopulatedArray<CancellationCallbackInfo>>(ref registeredCallbacksLists[myIndex]); 773SparselyPopulatedArray<CancellationCallbackInfo> list = Volatile.Read<SparselyPopulatedArray<CancellationCallbackInfo>>(ref callbackLists[index]); 1200get { return Volatile.Read<T>(ref m_elements[index]); }
system\threading\LazyInitializer.cs (2)
92if (Volatile.Read<T>(ref target) != null) 131if (Volatile.Read<T>(ref target) != null)
system\threading\threadpool.cs (6)
315obj = Volatile.Read(ref m_array[idx]); 335obj = Volatile.Read(ref m_array[idx]); 387obj = Volatile.Read(ref m_array[idx]); 506Contract.Assert(Volatile.Read(ref nodes[upper]) == null); 537while ((node = Volatile.Read(ref nodes[lower])) == null) 697WorkStealingQueue otherQueue = Volatile.Read(ref otherQueues[i % otherQueues.Length]);
System (5)
compmod\system\componentmodel\TypeDescriptor.cs (2)
2840RefreshEventHandler handler = Volatile.Read(ref Refreshed); 2849RefreshEventHandler handler = Volatile.Read(ref Refreshed);
net\System\Net\HttpListenerRequest.cs (2)
1024if (Volatile.Read(ref m_TokenBindings) == null) 1028if (Volatile.Read(ref m_TokenBindings) == null)
net\System\Net\WebExceptionStatus.cs (1)
164string message = Volatile.Read(ref s_Mapping[statusInt]);
System.Core (2)
Microsoft\Scripting\Utils\CacheDict.cs (2)
81var entry = Volatile.Read(ref this.entries[idx]); 100var entry = Volatile.Read(ref this.entries[idx]);
System.Web (3)
Hosting\AsyncResultBase.cs (1)
38if (Volatile.Read(ref _threadWhichStartedOperation) == Thread.CurrentThread) {
Hosting\HostingEnvironment.cs (1)
1189BackgroundWorkScheduler scheduler = Volatile.Read(ref _backgroundWorkScheduler);
HttpAsyncResult.cs (1)
69if (Volatile.Read(ref _threadWhichStartedOperation) == Thread.CurrentThread) {