mirror of
https://github.com/DCFApixels/DragonECS-ClassicThreads.git
synced 2025-09-18 11:54:34 +08:00
rename handler
This commit is contained in:
parent
4748c43eaf
commit
6a42211f28
@ -2,11 +2,11 @@
|
|||||||
{
|
{
|
||||||
public static class EcsGroupExtensions
|
public static class EcsGroupExtensions
|
||||||
{
|
{
|
||||||
public static void IterateParallel(this EcsGroup self, ThreadWorkerHandler worker, int minSpanSize)
|
public static void IterateParallel(this EcsGroup self, EcsThreadHandler worker, int minSpanSize)
|
||||||
{
|
{
|
||||||
IterateParallel(self, worker, minSpanSize);
|
IterateParallel(self, worker, minSpanSize);
|
||||||
}
|
}
|
||||||
public static void IterateParallel(this EcsReadonlyGroup self, ThreadWorkerHandler worker, int minSpanSize)
|
public static void IterateParallel(this EcsReadonlyGroup self, EcsThreadHandler worker, int minSpanSize)
|
||||||
{
|
{
|
||||||
ThreadRunner.Run(worker, self, minSpanSize);
|
ThreadRunner.Run(worker, self, minSpanSize);
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ namespace DCFApixels.DragonECS
|
|||||||
private readonly static int _maxThreadsCount;
|
private readonly static int _maxThreadsCount;
|
||||||
private static ThreadReacord[] _threads;
|
private static ThreadReacord[] _threads;
|
||||||
|
|
||||||
private static ThreadWorkerHandler _worker;
|
private static EcsThreadHandler _worker;
|
||||||
private static ThreadWorkerHandler _nullWorker = delegate { };
|
private static EcsThreadHandler _nullWorker = delegate { };
|
||||||
private static int[] _entities = new int[64];
|
private static int[] _entities = new int[64];
|
||||||
private static List<Exception> _catchedExceptions;
|
private static List<Exception> _catchedExceptions;
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ namespace DCFApixels.DragonECS
|
|||||||
_worker = _nullWorker;
|
_worker = _nullWorker;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Run(ThreadWorkerHandler worker, EcsReadonlyGroup entities, int minSpanSize)
|
public static void Run(EcsThreadHandler worker, EcsReadonlyGroup entities, int minSpanSize)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_isRunning)
|
if (_isRunning)
|
||||||
@ -123,5 +123,5 @@ namespace DCFApixels.DragonECS
|
|||||||
public int size;
|
public int size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public delegate void ThreadWorkerHandler(ReadOnlySpan<int> entities);
|
public delegate void EcsThreadHandler(ReadOnlySpan<int> entities);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user