1 instantiation of CancellationCallbackInfo
mscorlib (1)
system\threading\CancellationTokenSource.cs (1)
668
CancellationCallbackInfo callbackInfo = new
CancellationCallbackInfo
(callback, stateForCallback, targetSyncContext, executionContext, this);
26 references to CancellationCallbackInfo
mscorlib (26)
system\threading\CancellationTokenRegistration.cs (6)
25
private readonly
CancellationCallbackInfo
m_callbackInfo;
26
private readonly SparselyPopulatedArrayAddInfo<
CancellationCallbackInfo
> m_registrationInfo;
29
CancellationCallbackInfo
callbackInfo,
30
SparselyPopulatedArrayAddInfo<
CancellationCallbackInfo
> registrationInfo)
50
CancellationCallbackInfo
prevailingCallbackInfoInSlot = m_registrationInfo.Source.SafeAtomicRemove(m_registrationInfo.Index, m_callbackInfo);
79
var
callbackInfo = m_callbackInfo;
system\threading\CancellationTokenSource.cs (20)
56
private volatile SparselyPopulatedArray<
CancellationCallbackInfo
>[] m_registeredCallbacksLists;
81
private volatile
CancellationCallbackInfo
m_executingCallback;
209
internal
CancellationCallbackInfo
ExecutingCallback
668
CancellationCallbackInfo
callbackInfo = new CancellationCallbackInfo(callback, stateForCallback, targetSyncContext, executionContext, this);
674
SparselyPopulatedArray<
CancellationCallbackInfo
>[] list = new SparselyPopulatedArray<
CancellationCallbackInfo
>[s_nLists];
680
var callbacks = Volatile.Read<SparselyPopulatedArray<
CancellationCallbackInfo
>>(ref registeredCallbacksLists[myIndex]);
683
SparselyPopulatedArray<
CancellationCallbackInfo
> callBackArray = new SparselyPopulatedArray<
CancellationCallbackInfo
>(4);
689
SparselyPopulatedArrayAddInfo<
CancellationCallbackInfo
> addInfo = callbacks.Add(callbackInfo);
759
SparselyPopulatedArray<
CancellationCallbackInfo
>[] callbackLists = m_registeredCallbacksLists;
773
SparselyPopulatedArray<
CancellationCallbackInfo
> list = Volatile.Read<SparselyPopulatedArray<
CancellationCallbackInfo
>>(ref callbackLists[index]);
776
SparselyPopulatedArrayFragment<
CancellationCallbackInfo
> currArrayFragment = list.Tail;
853
CancellationCallbackInfo
callback = args.m_currArrayFragment.SafeAtomicRemove(args.m_currArrayIndex, m_executingCallback);
941
internal void WaitForCallbackToComplete(
CancellationCallbackInfo
callbackInfo)
957
internal SparselyPopulatedArrayFragment<
CancellationCallbackInfo
> m_currArrayFragment;
960
public CancellationCallbackCoreWorkArguments(SparselyPopulatedArrayFragment<
CancellationCallbackInfo
> currArrayFragment, int currArrayIndex)
1028
CancellationCallbackInfo
callbackInfo = obj as
CancellationCallbackInfo
;