summaryrefslogtreecommitdiff
path: root/comm/TimeOut.cc
diff options
context:
space:
mode:
authorchatty1993-07-27 13:54:04 +0000
committerchatty1993-07-27 13:54:04 +0000
commitaf836c3ead39838720801f5364d92ca62672f0db (patch)
tree3d6ce95cb0dd7a80c84c31af4dad31571eec65c5 /comm/TimeOut.cc
parentbda1614db71943e051bd153f48c1e8071d66b5c8 (diff)
downloadivy-league-af836c3ead39838720801f5364d92ca62672f0db.zip
ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.gz
ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.bz2
ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.xz
Added header
Diffstat (limited to 'comm/TimeOut.cc')
-rw-r--r--comm/TimeOut.cc23
1 files changed, 19 insertions, 4 deletions
diff --git a/comm/TimeOut.cc b/comm/TimeOut.cc
index 18fb3ec..72a30e2 100644
--- a/comm/TimeOut.cc
+++ b/comm/TimeOut.cc
@@ -1,8 +1,23 @@
+/*
+ * The Unix Channel
+ *
+ * by Michel Beaudouin-Lafon and Stephane Chatty
+ *
+ * Copyright 1990-1993
+ * Laboratoire de Recherche en Informatique (LRI)
+ * Centre d'Etudes de la Navigation Aerienne
+ *
+ * Multiplexer-based timers
+ *
+ * $Id$
+ * $CurLog$
+ */
+
#include "TimeOut.h"
#include "ccu/Signal.h"
#include "Multiplexer.h"
-UchBaseTimeOut :: UchBaseTimeOut (UchMultiplexer& m, Millisecond period, int pulses)
+UchBaseTimeOut :: UchBaseTimeOut (UchBaseMultiplexer& m, Millisecond period, int pulses)
: CcuCoreTimer (period, pulses, m.GetTimerSet ()),
MyMpx (m)
{
@@ -29,9 +44,9 @@ UchBaseTimeOut :: StopAlarm ()
/*?hidden?*/
void
-UchBaseTimeOut :: SetAlarm (Millisecond when)
+UchBaseTimeOut :: SetAlarm (Millisecond delay)
{
- MyMpx.SetTimeOut (when);
+ MyMpx.SetTimeOut (delay);
}
@@ -49,7 +64,7 @@ take a \typ{Millisecond} argument and return \typ{void}.
Create a timer associated to the multiplexer \var{m}, that will expire every \var{period} milliseconds and call
the function \var{handler}.
?*/
-UchTimeOut :: UchTimeOut (UchMultiplexer& m, Millisecond period, void (*handler) (Millisecond), int pulses)
+UchTimeOut :: UchTimeOut (UchBaseMultiplexer& m, Millisecond period, void (*handler) (Millisecond), int pulses)
: UchBaseTimeOut (m, period, pulses),
Handler (handler)
{