QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCLoggingCategory.cc
Go to the documentation of this file.
2
3#include <QtCore/QMutex>
4#include <QtCore/QStringList>
5
7
8// Defined in QGCLoggingCategoryManager.cc — shared early-registration buffer that
9// queues QGC_LOGGING_CATEGORY static ctors that run before the manager singleton.
10extern QMutex& qgcLoggingEarlyMutex();
11extern QStringList*& qgcLoggingEarlyPending();
12
14{
16 if (mgr) {
17 mgr->registerCategory(category);
18 } else {
19 QMutexLocker locker(&qgcLoggingEarlyMutex());
21 qgcLoggingEarlyPending()->append(category);
22 }
23 }
24}
QMutex & qgcLoggingEarlyMutex()
QStringList *& qgcLoggingEarlyPending()
static QGCLoggingCategoryManager * instance()
QGCLoggingCategory(const QString &category)