QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCLoggingCategory.cc File Reference
#include "QGCLoggingCategory.h"
#include <QtCore/QMutex>
#include <QtCore/QObject>
#include <QtCore/QPointer>
+ Include dependency graph for QGCLoggingCategory.cc:

Go to the source code of this file.

Functions

QStringList qgcObserveLoggingCategories (QObject *context, std::function< void(const QString &)> observer)
 

Function Documentation

◆ qgcObserveLoggingCategories()

QStringList qgcObserveLoggingCategories ( QObject *  context,
std::function< void(const QString &)>  observer 
)

Replaces the single process-wide sink and atomically returns the existing catalogue. Subsequent unique registrations are queued to context's thread; the snapshot is not replayed. Install from that thread and keep context alive until concurrent registrations have finished. A null context removes the sink. Replacement does not cancel deliveries already queued to the previous context; destroying that context does. This is not a multi-subscriber API.

Definition at line 36 of file QGCLoggingCategory.cc.