整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
31
util/Service.h
Normal file
31
util/Service.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue