| 16 | namespace CppLogging { |
| 17 | |
| 18 | AsyncWaitProcessor::AsyncWaitProcessor(const std::shared_ptr<Layout>& layout, bool auto_start, size_t capacity, size_t initial, const std::function<void ()>& on_thread_initialize, const std::function<void ()>& on_thread_clenup) |
| 19 | : Processor(layout), |
| 20 | _queue(capacity, initial), |
| 21 | _on_thread_initialize(on_thread_initialize), |
| 22 | _on_thread_clenup(on_thread_clenup) |
| 23 | { |
| 24 | _started = false; |
| 25 | |
| 26 | // Start the logging processor |
| 27 | if (auto_start) |
| 28 | Start(); |
| 29 | } |
| 30 | |
| 31 | AsyncWaitProcessor::~AsyncWaitProcessor() |
| 32 | { |
nothing calls this directly
no outgoing calls
no test coverage detected