forked from OSchip/llvm-project
[lldb/Core] Remove more duplicate code in PluginManager (NFCI)
The PluginManager contains a lot of duplicate code. I already removed a bunch of it by introducing the templated PluginInstance class, and this is the next step. The PluginInstances class combines the mutex and the vector and implements the common operations. To accommodate plugin instances with additional members it is possible to access the underlying vector and mutex. The methods to query these fields make use of that. Differential revision: https://reviews.llvm.org/D74816
This commit is contained in:
parent
2a095ff6f5
commit
80b2e3cc53