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

19 lines
322 B
C++

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