| 140 | } |
| 141 | |
| 142 | ~PluginCreatorRegistry() |
| 143 | { |
| 144 | std::lock_guard<std::mutex> lock(mRegistryLock); |
| 145 | |
| 146 | // Release pluginCreators in LIFO order of registration. |
| 147 | while (!mRegistry.empty()) |
| 148 | { |
| 149 | mRegistry.pop(); |
| 150 | } |
| 151 | mRegistryList.clear(); |
| 152 | } |
| 153 | |
| 154 | private: |
| 155 | PluginCreatorRegistry() {} |