Abstract backend worker class

This commit is contained in:
F1F88 2024-12-11 23:32:58 +08:00
parent 24dde318fe
commit 573877a3f0

View File

@ -0,0 +1,22 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
namespace spdlog {
namespace details {
class thread_pool;
class backend_worker : public std::enable_shared_from_this<backend_worker> {
friend class thread_pool;
protected:
virtual void backend_sink_it_(const details::log_msg &msg) = 0;
virtual void backend_flush_() = 0;
};
} // namespace details
} // namespace spdlog