acl/lib_acl_cpp/samples/winaio/AioTimer.hpp
2014-11-19 00:25:21 +08:00

37 lines
578 B
C++

#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:
// »ùÀà´¿Ð麯Êý
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:
};