整理代码

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

31
util/Service.h Normal file
View file

@ -0,0 +1,31 @@
#ifndef F3A063B4_C5E0_40B0_AFDA_B9DC936E9E82
#define F3A063B4_C5E0_40B0_AFDA_B9DC936E9E82
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include <Poco/Task.h>
#include <Poco/Thread.h>
namespace Util
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class Service: public Poco::Task
{
public:
using Poco::Task::Task;
virtual void start();
virtual void stop();
bool isRunning() const;
private:
Poco::SharedPtr<Poco::Thread> _pThread;
};
}
#endif