mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 09:20:52 +08:00
cc05b877a2
first commit acl to github
19 lines
319 B
C++
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);
|
|
};
|