overte/libraries/entities-renderer
Anthony J. Thibault 0a943fbe7b Crash/Deadlock fix: Web3DOverlay could be destroyed on wrong thread.
When script calls Entities.getChildrenIDs*() it is possible to deadlock the main thread, and also invoke
the destructor of Entities and Overlays, which is very NOT thread safe.

The fix is to use a pattern already in use in several places in our codebase.
Use the custom deleter parameter of std::shared_ptr to call deleteLater() instead of destroying the object in place.
This allows any thread to use shared_ptrs of SpatiallyNestables without fear.
2017-10-11 17:32:34 -07:00
..
src Crash/Deadlock fix: Web3DOverlay could be destroyed on wrong thread. 2017-10-11 17:32:34 -07:00
CMakeLists.txt Trying to fix QtQml/QtScript crashes 2017-06-22 16:39:57 -07:00