| 96 | } |
| 97 | |
| 98 | std::vector<LogSource*> LogSources::GetSources() const |
| 99 | { |
| 100 | assert(m_executor.IsExecutorThread()); |
| 101 | std::vector<LogSource*> sources; |
| 102 | std::lock_guard<std::mutex> lock(m_mutex); |
| 103 | for (auto& pSource : m_sources) |
| 104 | { |
| 105 | if (!dynamic_cast<Loopback*>(pSource.get())) |
| 106 | sources.push_back(pSource.get()); |
| 107 | } |
| 108 | return sources; |
| 109 | } |
| 110 | |
| 111 | void LogSources::SetAutoNewLine(bool value) |
| 112 | { |
no test coverage detected