Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race conditions in the PluginSystem
- Use tbb::zero_allocator to be sure std::atomic is nullptr even before its constructor has finished - Avoid having a temporary empty std::shared_ptr be placed in the map before being reset - Be sure object is fully initialized before using it
- Loading branch information
Showing
3 changed files
with
6 additions
and
2 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
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
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