void IpcLogOutputter::close() { if (m_bufferThread != nullptr) { m_running = false; notifyBuffer(); m_bufferThread->wait(5); } }
void IpcLogOutputter::close() { if (m_bufferThread != nullptr) { ArchMutexLock lock(m_runningMutex); m_running = false; notifyBuffer(); m_bufferThread->wait(5); } }
bool IpcLogOutputter::write(ELevel, const char* text) { // ignore events from the buffer thread (would cause recursion). if (m_bufferThread != nullptr && Thread::getCurrentThread().getID() == m_bufferThreadId) { return true; } appendBuffer(text); notifyBuffer(); return true; }