summaryrefslogtreecommitdiff
path: root/otk/timer.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-04 05:40:32 +0000
committerDana Jansens <danakj@orodu.net>2002-11-04 05:40:32 +0000
commitd0b55be2c7afb5b25b42804c9eab4995e64dff52 (patch)
treedb2a7692a03d9fb10f20586f5807f9ad09da06e8 /otk/timer.cc
parentd557e816bea578ea72f80b1d97492515e926d76b (diff)
OBTimer is fully documented.
change how the timerqueuemanager makes timers fire recursively, so that OBTimer::halt could go away
Diffstat (limited to 'otk/timer.cc')
-rw-r--r--otk/timer.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/otk/timer.cc b/otk/timer.cc
index bde95f89..3f1afea0 100644
--- a/otk/timer.cc
+++ b/otk/timer.cc
@@ -77,15 +77,11 @@ void OBTimer::start(void)
void OBTimer::stop(void)
{
- timing = false;
+ if (timing) {
+ timing = false;
- manager->removeTimer(this);
-}
-
-
-void OBTimer::halt(void)
-{
- timing = false;
+ manager->removeTimer(this);
+ }
}