diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-07 23:58:34 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-07 23:58:34 +0000 |
commit | 81e0a245decc09943832d52cb9f419e3f8f355b7 (patch) | |
tree | 8aaf3418082d4c3b107e2f01eedf0d55095c7ec7 /ace/Reactor_Timer_Interface.h | |
parent | 784fe453b13e068e3ec273b9a0f4021ac5a51e96 (diff) | |
download | ATCD-81e0a245decc09943832d52cb9f419e3f8f355b7.tar.gz |
ChangeLogTag: Mon Jul 07 18:00:38 2003 Irfan Pyarali <irfan@oomworks.com>
Diffstat (limited to 'ace/Reactor_Timer_Interface.h')
-rw-r--r-- | ace/Reactor_Timer_Interface.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ace/Reactor_Timer_Interface.h b/ace/Reactor_Timer_Interface.h new file mode 100644 index 00000000000..f94bedc0993 --- /dev/null +++ b/ace/Reactor_Timer_Interface.h @@ -0,0 +1,50 @@ +/* -*- C++ -*- */ + +//============================================================================= +/** + * @file Reactor_Timer_Interface.h + * + * $Id$ + * + * @author Irfan Pyarali <irfan@oomworks.com> + */ +//============================================================================= + +#ifndef ACE_REACTOR_TIMER_INTERFACE_H +#define ACE_REACTOR_TIMER_INTERFACE_H +#include "ace/pre.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class ACE_Event_Handler; + +/** + * @class ACE_Reactor_Timer_Interface + * + * @brief Interface for timer related methods on the Reactor. + */ +class ACE_Export ACE_Reactor_Timer_Interface +{ +public: + + virtual long schedule_timer (ACE_Event_Handler *event_handler, + const void *arg, + const ACE_Time_Value &delay, + const ACE_Time_Value &interval = ACE_Time_Value::zero) = 0; + + virtual int reset_timer_interval (long timer_id, + const ACE_Time_Value &interval) = 0; + + virtual int cancel_timer (long timer_id, + const void **arg = 0, + int dont_call_handle_close = 1) = 0; + + virtual int cancel_timer (ACE_Event_Handler *event_handler, + int dont_call_handle_close = 1) = 0; + +}; + +#include "ace/post.h" +#endif /* ACE_REACTOR_TIMER_INTERFACE_H */ |