mirror of
https://github.com/DCFApixels/DragonECS-ClassicThreads.git
synced 2025-09-17 19:24:37 +08:00
Compare commits
5 Commits
b32421ed95
...
26df930329
Author | SHA1 | Date | |
---|---|---|---|
![]() |
26df930329 | ||
![]() |
543534f447 | ||
![]() |
a38975cc7d | ||
![]() |
2faa845b31 | ||
![]() |
daa707ea0b |
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,6 +35,7 @@ ExportedObj/
|
|||||||
*.csproj
|
*.csproj
|
||||||
*.unityproj
|
*.unityproj
|
||||||
*.sln
|
*.sln
|
||||||
|
*.sln.meta
|
||||||
*.suo
|
*.suo
|
||||||
*.tmp
|
*.tmp
|
||||||
*.user
|
*.user
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"displayName": "DragonECS-ClassicThreads",
|
"displayName": "DragonECS-ClassicThreads",
|
||||||
"description": "Classic C# Multithreading for DragonECS",
|
"description": "Classic C# Multithreading for DragonECS",
|
||||||
"unity": "2020.3",
|
"unity": "2020.3",
|
||||||
"version": "0.2.5",
|
"version": "0.2.6",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/DCFApixels/DragonECS-ClassicThreads.git"
|
"url": "https://github.com/DCFApixels/DragonECS-ClassicThreads.git"
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
namespace DCFApixels.DragonECS
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
public static class EcsCollectionsExtensions
|
public static class EcsCollectionsExtensions
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
using DCFApixels.DragonECS.ClassicThreadsInternal;
|
using DCFApixels.DragonECS.ClassicThreadsInternal;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
@ -69,7 +72,7 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
if (_isRunning)
|
if (_isRunning)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if DEBUG || DRAGONECS_STABILITY_MODE
|
||||||
if (_threads.Any(o => o.thread == Thread.CurrentThread))
|
if (_threads.Any(o => o.thread == Thread.CurrentThread))
|
||||||
{
|
{
|
||||||
Throw.DoubleParallelIteration();
|
Throw.DoubleParallelIteration();
|
||||||
|
Loading…
Reference in New Issue
Block a user