Class Dispatcher
- Namespace
- Stride.Core.Threading
- Assembly
- Stride.Core.dll
- Inheritance
-
Dispatcher
Fields
MaxDegreeOfParallelism
public static int MaxDegreeOfParallelism
Field Value
- int
Methods
For(int, int, Action<int>)
public static void For(int fromInclusive, int toExclusive, Action<int> action)
Parameters
fromInclusive
int
toExclusive
int
action
Action<int>
ForEach<T>(FastCollection<T>, Action<T>)
public static void ForEach<T>(FastCollection<T> collection, Action<T> action)
Parameters
collection
FastCollection<T>
action
Action<T>
Type Parameters
T
ForEach<T>(FastList<T>, ValueAction<T>)
public static void ForEach<T>(FastList<T> collection, Dispatcher.ValueAction<T> action)
Parameters
collection
FastList<T>
action
Dispatcher.ValueAction<T>
Type Parameters
T
ForEach<T>(FastList<T>, Action<T>)
public static void ForEach<T>(FastList<T> collection, Action<T> action)
Parameters
collection
FastList<T>
action
Action<T>
Type Parameters
T
ForEach<T>(ConcurrentCollector<T>, ValueAction<T>)
public static void ForEach<T>(ConcurrentCollector<T> collection, Dispatcher.ValueAction<T> action)
Parameters
collection
ConcurrentCollector<T>
action
Dispatcher.ValueAction<T>
Type Parameters
T
ForEach<T>(ConcurrentCollector<T>, Action<T>)
public static void ForEach<T>(ConcurrentCollector<T> collection, Action<T> action)
Parameters
collection
ConcurrentCollector<T>
action
Action<T>
Type Parameters
T
ForEach<T>(IReadOnlyList<T>, Action<T>)
public static void ForEach<T>(IReadOnlyList<T> collection, Action<T> action)
Parameters
collection
IReadOnlyList<T>
action
Action<T>
Type Parameters
T
ForEach<T>(List<T>, Action<T>)
public static void ForEach<T>(List<T> collection, Action<T> action)
Parameters
collection
List<T>
action
Action<T>
Type Parameters
T
ForEach<TKey, TValue>(Dictionary<TKey, TValue>, Action<KeyValuePair<TKey, TValue>>)
public static void ForEach<TKey, TValue>(Dictionary<TKey, TValue> collection, Action<KeyValuePair<TKey, TValue>> action)
Parameters
collection
Dictionary<TKey, TValue>
action
Action<KeyValuePair<TKey, TValue>>
Type Parameters
TKey
TValue
ForEach<TItem, TLocal>(IReadOnlyList<TItem>, Func<TLocal>, Action<TItem, TLocal>, Action<TLocal>)
public static void ForEach<TItem, TLocal>(IReadOnlyList<TItem> collection, Func<TLocal> initializeLocal, Action<TItem, TLocal> action, Action<TLocal> finalizeLocal = null)
Parameters
collection
IReadOnlyList<TItem>
initializeLocal
Func<TLocal>
action
Action<TItem, TLocal>
finalizeLocal
Action<TLocal>
Type Parameters
TItem
TLocal
ForEach<TKey, TValue, TLocal>(Dictionary<TKey, TValue>, Func<TLocal>, Action<KeyValuePair<TKey, TValue>, TLocal>, Action<TLocal>)
public static void ForEach<TKey, TValue, TLocal>(Dictionary<TKey, TValue> collection, Func<TLocal> initializeLocal, Action<KeyValuePair<TKey, TValue>, TLocal> action, Action<TLocal> finalizeLocal = null)
Parameters
collection
Dictionary<TKey, TValue>
initializeLocal
Func<TLocal>
action
Action<KeyValuePair<TKey, TValue>, TLocal>
finalizeLocal
Action<TLocal>
Type Parameters
TKey
TValue
TLocal
For<TLocal>(int, int, Func<TLocal>, Action<int, TLocal>, Action<TLocal>)
public static void For<TLocal>(int fromInclusive, int toExclusive, Func<TLocal> initializeLocal, Action<int, TLocal> action, Action<TLocal> finalizeLocal = null)
Parameters
fromInclusive
int
toExclusive
int
initializeLocal
Func<TLocal>
action
Action<int, TLocal>
finalizeLocal
Action<TLocal>
Type Parameters
TLocal
Sort<T>(FastList<T>, IComparer<T>)
public static void Sort<T>(FastList<T> collection, IComparer<T> comparer)
Parameters
collection
FastList<T>
comparer
IComparer<T>
Type Parameters
T
Sort<T>(ConcurrentCollector<T>, IComparer<T>)
public static void Sort<T>(ConcurrentCollector<T> collection, IComparer<T> comparer)
Parameters
collection
ConcurrentCollector<T>
comparer
IComparer<T>
Type Parameters
T
Sort<T>(T[], int, int, IComparer<T>)
public static void Sort<T>(T[] collection, int index, int length, IComparer<T> comparer)
Parameters
collection
T[]
index
int
length
int
comparer
IComparer<T>
Type Parameters
T