整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

39
util/Subsystem.h Normal file
View file

@ -0,0 +1,39 @@
#ifndef DC436124_02CE_49A1_88B1_1A95453FA546
#define DC436124_02CE_49A1_88B1_1A95453FA546
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "Service.h"
#include <Poco/Task.h>
#include <Poco/TaskManager.h>
#include <Poco/Thread.h>
#include <Poco/ThreadPool.h>
#include <Poco/Util/Subsystem.h>
namespace Util
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class Subsystem: public Poco::Util::Subsystem
{
public:
Subsystem(int maxCapacity = 16);
protected:
void run(Service* pService);
void stopAll();
virtual void uninitialize() override;
private:
Poco::ThreadPool _threadPool;
Poco::TaskManager _taskManager;
};
}
#endif