| 102 | |
| 103 | |
| 104 | Stage *StageFactory::createStage(std::string const& stage_name) |
| 105 | { |
| 106 | static_assert(0 < sizeof(Stage), ""); |
| 107 | Stage *s = PluginManager<Stage>::createObject(stage_name); |
| 108 | if (s) |
| 109 | { |
| 110 | std::lock_guard<std::mutex> lock(m_mutex); |
| 111 | m_ownedStages.push_back(std::unique_ptr<Stage>(s)); |
| 112 | } |
| 113 | return s; |
| 114 | } |
| 115 | |
| 116 | |
| 117 | void StageFactory::destroyStage(Stage *s) |
no outgoing calls