2014-11-19 00:25:21 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
#include <set>
|
|
|
|
|
#include "acl_cpp/stream/aio_handle.hpp"
|
|
|
|
|
|
|
|
|
|
class CAioTimer : public acl::aio_timer_callback
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CAioTimer(acl::aio_handle* handle, int id, bool keep);
|
|
|
|
|
~CAioTimer();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
// <20><><EFBFBD>ി<EFBFBD>麯<EFBFBD><E9BAAF>
|
|
|
|
|
virtual void timer_callback(unsigned int id);
|
|
|
|
|
virtual void destroy(void);
|
|
|
|
|
private:
|
|
|
|
|
acl::aio_handle* handle_;
|
|
|
|
|
int id_;
|
|
|
|
|
bool inited_;
|
|
|
|
|
std::set<int> tt_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class CMemory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CMemory(void)
|
|
|
|
|
{
|
|
|
|
|
printf(">>in CMemory\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
~CMemory(void)
|
|
|
|
|
{
|
|
|
|
|
printf(">> in ~CMemory\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
private:
|
2013-08-18 17:42:25 +08:00
|
|
|
|
};
|