|
|
@ -186,9 +186,11 @@ namespace MWPhysics
|
|
|
|
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
|
|
|
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mRemainingSteps)
|
|
|
|
if (mRemainingSteps)
|
|
|
|
|
|
|
|
{
|
|
|
|
--mRemainingSteps;
|
|
|
|
--mRemainingSteps;
|
|
|
|
|
|
|
|
updateActorsPositions();
|
|
|
|
|
|
|
|
}
|
|
|
|
mNextJob.store(0, std::memory_order_release);
|
|
|
|
mNextJob.store(0, std::memory_order_release);
|
|
|
|
updateActorsPositions();
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
|
|
|
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
|
|
|