acl/lib_acl_cpp/samples/winaio/AioTimer.hpp

37 lines
587 B
C++
Raw Normal View History

#pragma once
2014-11-19 00:25:21 +08:00
#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:
// 基类纯虚函数
2014-11-19 00:25:21 +08:00
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:
};