Fixed warnings

This commit is contained in:
gabime 2025-01-17 17:39:03 +02:00
parent 82358e8ebe
commit 8736ee28e0
2 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,8 @@ public:
explicit async_sink(config async_config);
async_sink(const async_sink &) = delete;
async_sink &operator=(const async_sink &) = delete;
async_sink(async_sink &&) = delete;
async_sink &operator=(async_sink &&) = delete;
~async_sink() override;
// sink interface implementation
@ -103,7 +105,6 @@ private:
std::unique_ptr<queue_t> q_;
std::thread worker_thread_;
details::err_helper err_helper_;
std::atomic_size_t flush_requests_ = 0;
std::atomic_bool terminate_worker_ = false;
};

View File

@ -33,6 +33,7 @@ async_sink::async_sink(config async_config)
});
}
async_sink::~async_sink() {
try {
q_->enqueue(async_log_msg(async_log_msg::type::terminate));