void MultithreadedPrestep(int i)
{
var updateable = solverUpdateables.Elements[i];
updateable.UpdateSolverActivity();
if (updateable.isActiveInSolver)
{
updateable.SolverSettings.currentIterations = 0;
updateable.SolverSettings.iterationsAtZeroImpulse = 0;
updateable.Update(timeStepSettings.TimeStepDuration);
updateable.EnterLock();
try
{
updateable.ExclusiveUpdate();
}
finally
{
updateable.ExitLock();
}
}
}