Bug fix: new job could be ignored if it arrived with precise timing.

This commit is contained in:
Joseph Cloutier
2024-08-09 15:11:50 -04:00
parent 95baa58eff
commit dae33c0c1a

View File

@@ -438,7 +438,7 @@ class ThreadPool extends WorkOutput
if (interruption == null || output.__jobComplete.value)
{
// Work is done; wait for more.
event = null;
event = interruption;
}
else if(#if (haxe_ver >= 4.2) Std.isOfType #else Std.is #end (interruption, ThreadEvent))
{