| 249 | } |
| 250 | |
| 251 | std::shared_ptr<streamfx::ui::handler> streamfx::ui::handler::instance() |
| 252 | { |
| 253 | static std::weak_ptr<streamfx::ui::handler> winst; |
| 254 | static std::mutex mtx; |
| 255 | |
| 256 | std::unique_lock<decltype(mtx)> lock(mtx); |
| 257 | auto instance = winst.lock(); |
| 258 | if (!instance) { |
| 259 | instance = std::shared_ptr<streamfx::ui::handler>(new streamfx::ui::handler()); |
| 260 | winst = instance; |
| 261 | } |
| 262 | return instance; |
| 263 | } |
| 264 | |
| 265 | streamfx::ui::translator::translator(QObject* parent) {} |
| 266 |