Closed lyqdy closed 3 months ago
void AppenderAttachable::removeAppender(const QString &name) { QWriteLocker locker(&mAppenderGuard); // it must be removed! AppenderSharedPtr pAppender = appender(name); if (pAppender) removeAppender(pAppender); }
As the mutex allows recursive lock it should not lock. But removed unnecessary lock.
void AppenderAttachable::removeAppender(const QString &name) { QWriteLocker locker(&mAppenderGuard); // it must be removed! AppenderSharedPtr pAppender = appender(name); if (pAppender) removeAppender(pAppender); }