fix invalid usage of SpinLock, #195

master
neuecc 2020-11-09 14:20:03 +09:00
parent da0e654e7d
commit 854100c075
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace Cysharp.Threading.Tasks.Internal
readonly PlayerLoopTiming timing; readonly PlayerLoopTiming timing;
SpinLock gate = new SpinLock(); SpinLock gate = new SpinLock(false);
bool dequing = false; bool dequing = false;
int actionListCount = 0; int actionListCount = 0;

View File

@ -9,7 +9,7 @@ namespace Cysharp.Threading.Tasks
const int MaxArrayLength = 0X7FEFFFFF; const int MaxArrayLength = 0X7FEFFFFF;
const int InitialSize = 16; const int InitialSize = 16;
static SpinLock gate = new SpinLock(); static SpinLock gate = new SpinLock(false);
static bool dequing = false; static bool dequing = false;
static int actionListCount = 0; static int actionListCount = 0;