Callback method cleanup


Rename class to SimulationEventCallback. Lock the removed nodes mutex
for the whole callback method call. This makes the method actually
thread safe since nodes can potentially be removed between the
lock/unlock calls. It also decreases the number of lock calls.

Pick-to: 6.5
Change-Id: I56d407ebd87951c1c6bca69a69c7a5c3083cb7c1
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commit193ab826d2c463ab369514a043e51c313fc689ac
parent84615a41a595004c917c17d89122d5ab6ac788ac
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeMon, 17 Apr 2023 12:59:08 +0100