单例模式

Analyser* Analyser::Instance() { static QMutex mutex; static QScopedPointer<Analyser> inst; if (Q_UNLIKELY(!inst)) { mutex.lock(); if (!inst) { inst.r
posted @ 2023-09-15 12:06  SusieSnail_SUN  阅读(4)  评论(0编辑  收藏  举报