I agree with @pmconrad about the sync problem. How to resolve it depends on how we are using it elsewhere, and how we refactor this method.
In addition, dealing with iterators while removing elements requires extra caution. We’ll have to look at this code closely to determine the best solution.
This post was last modified on June 13, 2018, 5:05 pm