event loop with threadmgr
Some checks failed
Docker Build & Publish / build (push) Failing after 1h11m38s

This commit is contained in:
Nicholas Orlowsky 2025-02-21 14:09:16 -05:00
parent ca05aa1e5a
commit 058c395095
7 changed files with 2481 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#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;
};
};