anthracite/lib/thread_mgr/thread_mgr.hpp
Nicholas Orlowsky 058c395095
Some checks failed
Docker Build & Publish / build (push) Failing after 1h11m38s
event loop with threadmgr
2025-02-21 14:09:16 -05:00

19 lines
485 B
C++

#pragma once
#include "../backends/backend.hpp"
#include "../config/config.hpp"
namespace anthracite::thread_mgr {
class thread_mgr {
protected:
bool _run;
backends::backend& _backend;
config::config& _config;
public:
thread_mgr(backends::backend& backend, config::config& config): _backend(backend), _config(config) {}
virtual ~thread_mgr() = default;
virtual void start() = 0;
virtual void stop() = 0;
};
};