Workspace 6.21.5
|
Thread for modifying the log - writing to it, adding streams etc.
#include <Workspace/Application/logmanagerimplthreaded.h>
Inherits QThread.
Public Types | |
using | LogUpdateFunc = std::function< bool()> |
using | LogUpdateFuncAndResult = std::pair< std::function< bool()>, std::unique_ptr< std::promise< bool > > > |
Public Member Functions | |
LoggingThread ()=default | |
LoggingThread (const LoggingThread &other)=delete | |
~LoggingThread () override=default | |
bool | enqueue (LogUpdateFunc func, std::unique_ptr< std::promise< bool > > resultPromise={}) |
bool | isStopped () const |
LoggingThread & | operator= (const LoggingThread &other)=delete |
void | requestStop () |
void | run () override |
Public Attributes | |
QSemaphore | hasMessage |
using LogUpdateFunc = std::function<bool()> |
using LogUpdateFuncAndResult = std::pair<std::function<bool()>, std::unique_ptr<std::promise<bool> >> |
|
default |
|
delete |
|
overridedefault |
bool enqueue | ( | LogUpdateFunc | func, |
std::unique_ptr< std::promise< bool > > | resultPromise = {} |
||
) |
bool isStopped | ( | ) | const |
|
delete |
void requestStop | ( | ) |
|
override |
QSemaphore hasMessage |