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