acl/lib_acl_cpp/samples/master_http_rpc/gc_timer.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

19 lines
319 B
C++

#pragma once
class gc_timer : public acl::aio_timer_callback
{
public:
gc_timer(acl::aio_handle& handle);
void start(int delay);
void stop();
private:
~gc_timer();
acl::aio_handle& handle_;
// 基类纯虚函数
virtual void timer_callback(unsigned int id);
virtual void destroy(void);
};