MythTV
master
|
#include <QMutexLocker>
#include <QMutex>
#include <QQueue>
#include <QPointer>
#include <QCoreApplication>
#include <cstdint>
#include <cstdlib>
#include <string>
#include "mythconfig.h"
#include "mythbaseexp.h"
#include "verbosedefs.h"
#include "mthread.h"
#include "referencecounter.h"
#include "compat.h"
#include "mythchrono.h"
Go to the source code of this file.
Classes | |
class | LoggingItem |
The logging items that are generated by LOG() and are sent to the console. More... | |
class | LoggerThread |
The logging thread that consumes the logging queue and dispatches each LoggingItem. More... | |
Typedefs | |
using | tmType = struct tm |
Enumerations | |
enum | LoggingType : std::uint8_t { kMessage = 0x01, kRegistering = 0x02, kDeregistering = 0x04, kFlush = 0x08, kStandardIO = 0x10, kInitializing = 0x20 } |
Functions | |
void | loggingRegisterThread (const QString &name) |
Register the current thread with the given name. More... | |
void | loggingDeregisterThread (void) |
Deregister the current thread's name. More... | |
enum LoggingType : std::uint8_t |
void loggingRegisterThread | ( | const QString & | name | ) |
Register the current thread with the given name.
This is triggered by the RunProlog() call in each thread.
name | the name of the thread being registered. This is used for indicating the thread each log message is coming from. |
Definition at line 701 of file logging.cpp.
Referenced by MPoolThread::run(), and MThread::ThreadSetup().
void loggingDeregisterThread | ( | void | ) |
Deregister the current thread's name.
This is triggered by the RunEpilog() call in each thread.
Definition at line 720 of file logging.cpp.
Referenced by MPoolThread::run(), MThread::ThreadCleanup(), and MythCoreContextPrivate::~MythCoreContextPrivate().