forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify single_actor_batch crash fix on sim_t::cancel
Introduced with f24fc9d, this commit instead ensures that no work is going to be done, if the simulation is cancelled. This ensures that work_queue_t::pop will not increase the index past the number of actors in the sim, which in turn leads to crashes. Generally, the iteration code should never need to explicitly check bounds for anything related to "current_index" (current actor being simulated). By definition, if current_index is past the number of actors, then the simulation work is finished.
- Loading branch information
Showing
1 changed file
with
45 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters