MCPcopy Create free account
hub / github.com/chronoxor/CppLogging / AsyncWaitProcessor

Method AsyncWaitProcessor

source/logging/processors/async_wait_processor.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace CppLogging {
17
18AsyncWaitProcessor::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
31AsyncWaitProcessor::~AsyncWaitProcessor()
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected