Simulator::synchronize() seems to work.
Merge branch 'wielotorowość' of https://github.com/rideofyourlife/TrainSim into wielotorowość