/
Shymer123
/
LumenServer
Обзор
Документация
Войти
/
Shymer123
/
LumenServer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Server/SourceFiles/Core/Runtime.h
49 строк
995 B
Shymer123
Initial commit: LumenServer
20 июн 2026, 12:43
20 июн 2026, 12:43
173f14c
Код
Авторство
О чём код?
#ifndef RUNTIME_H #define RUNTIME_H #include <memory> #include <boost/asio/io_context.hpp> #include <boost/asio/signal_set.hpp> #include "RuntimeContext.h" namespace Core::Network { class TcpServer; } namespace Core::Infrastructure { class ThreadPoolManager; } namespace Core { class Runtime { public: Runtime(RuntimeContext& context); ~Runtime(); void start(); void stop(); void setExitSignal(std::condition_variable* cv, std::mutex* mtx) { m_exitCv = cv; m_exitMutex = mtx; } private: RuntimeContext& m_context; Infrastructure::ThreadPoolManager* m_threadPoolManager; std::unique_ptr<Network::TcpServer> m_tcpServer; std::unique_ptr<boost::asio::signal_set> m_signals; bool m_stopped = false; std::condition_variable* m_exitCv = nullptr; std::mutex* m_exitMutex = nullptr; }; } // namespace Core #endif // RUNTIME_H