summaryrefslogtreecommitdiff
path: root/apps/JAWS3/jaws3/Task_Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS3/jaws3/Task_Timer.cpp')
-rw-r--r--apps/JAWS3/jaws3/Task_Timer.cpp106
1 files changed, 0 insertions, 106 deletions
diff --git a/apps/JAWS3/jaws3/Task_Timer.cpp b/apps/JAWS3/jaws3/Task_Timer.cpp
deleted file mode 100644
index a429a3fcf8e..00000000000
--- a/apps/JAWS3/jaws3/Task_Timer.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// $Id$
-
-#ifndef JAWS_BUILD_DLL
-#define JAWS_BUILD_DLL
-#endif
-
-#include "ace/OS_NS_sys_time.h"
-
-#include "jaws3/Task_Timer.h"
-#include "jaws3/Timer_Helpers.h"
-
-
-JAWS_Task_Timer::JAWS_Task_Timer (void)
-{
- this->timer_queue_.activate ();
-}
-
-
-void
-JAWS_Task_Timer::schedule_timer ( long *timer_id
- , const ACE_Time_Value &delta
- , JAWS_Event_Completer *completer
- , void *act
- )
-{
- JAWS_Timer_EH *eh = new JAWS_Timer_EH (completer, act);
- if (eh == 0
- || (*timer_id =
- this->timer_queue_.schedule ( eh
- , 0
- , delta + ACE_OS::gettimeofday ()))
- == -1)
- {
- JAWS_Event_Result timer_result ( 0
- , JAWS_Event_Result::JE_ERROR
- , JAWS_Event_Result::JE_TIMER_FAIL
- );
-
- if (completer)
- completer->timer_complete (timer_result, act);
-
- delete eh;
- }
-}
-
-
-void
-JAWS_Task_Timer::schedule_absolute_timer ( long *timer_id
- , const ACE_Time_Value &tv
- , JAWS_Event_Completer *completer
- , void *act
- )
-{
- JAWS_Timer_EH *eh = new JAWS_Timer_EH (completer, act);
- if (eh == 0
- || (*timer_id = this->timer_queue_.schedule (eh, 0, tv)) == -1)
- {
- JAWS_Event_Result timer_result ( 0
- , JAWS_Event_Result::JE_ERROR
- , JAWS_Event_Result::JE_TIMER_FAIL
- );
-
- if (completer)
- completer->timer_complete (timer_result, act);
-
- delete eh;
- }
-}
-
-
-void
-JAWS_Task_Timer::schedule_interval_timer ( long *timer_id
- , const ACE_Time_Value &interval
- , JAWS_Event_Completer *completer
- , void *act
- )
-{
- JAWS_Timer_EH *eh = new JAWS_Timer_EH (completer, act);
- if (eh == 0
- || (*timer_id =
- this->timer_queue_.schedule ( eh
- , 0
- , interval + ACE_OS::gettimeofday ()
- , interval
- ))
- == -1)
- {
- JAWS_Event_Result timer_result ( 0
- , JAWS_Event_Result::JE_ERROR
- , JAWS_Event_Result::JE_TIMER_FAIL
- );
-
- if (completer)
- completer->timer_complete (timer_result, act);
-
- delete eh;
- }
-}
-
-
-void
-JAWS_Task_Timer::cancel_timer (long timer_id)
-{
- this->timer_queue_.cancel (timer_id);
-}
-