DragonECS-ClassicThreads/src/Exceptions.cs

19 lines
418 B
C#
Raw Normal View History

2025-03-14 16:53:39 +08:00
#if DISABLE_DEBUG
#undef DEBUG
#endif
using System;
2023-06-26 01:58:18 +08:00
namespace DCFApixels.DragonECS
{
2023-06-26 02:58:59 +08:00
namespace ClassicThreadsInternal
2023-06-26 01:58:18 +08:00
{
2023-06-26 02:58:59 +08:00
internal static class Throw
2023-06-26 01:58:18 +08:00
{
2023-06-26 02:58:59 +08:00
internal static void DoubleParallelIteration()
{
throw new InvalidOperationException("It is forbidden to start a parallel iteration before the last one is finished.");
}
2023-06-26 01:58:18 +08:00
}
}
}