Skip to content

Commit

Permalink
Revert "Revert "Add SignalReset-condition""
Browse files Browse the repository at this point in the history
This reverts commit dd7d5ae.
  • Loading branch information
notgiven688 committed Sep 14, 2024
1 parent dd7d5ae commit 7e41fce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Jitter2/World.Step.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ void SetTime(Timings type)
PostStep?.Invoke(dt);

// Signal the thread pool that threads can go into a wait state.
if (ThreadModel == ThreadModelType.Regular && ThreadPool.InstanceInitialized)
if ((ThreadModel == ThreadModelType.Regular || !multiThread)
&& ThreadPool.InstanceInitialized)
{
ThreadPool.Instance.SignalReset();
}
Expand Down

0 comments on commit 7e41fce

Please sign in to comment.