From af836c3ead39838720801f5364d92ca62672f0db Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 27 Jul 1993 13:54:04 +0000 Subject: Added header --- comm/TimeOut.cc | 23 +++++++++++++++++++---- comm/TimeOut.h | 26 +++++++++++++++++++------- 2 files changed, 38 insertions(+), 11 deletions(-) (limited to 'comm') 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) { diff --git a/comm/TimeOut.h b/comm/TimeOut.h index 9a05cb2..8364713 100644 --- a/comm/TimeOut.h +++ b/comm/TimeOut.h @@ -1,21 +1,33 @@ +/* + * 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$ + */ + #ifndef UchTimeOut_H_ #define UchTimeOut_H_ #include "ccu/Timer.h" class UchBaseTimeOut : public CcuCoreTimer { -friend class UchMultiplexer; - -private: -static void ClassInit (); +friend class UchBaseMultiplexer; protected: - UchMultiplexer& MyMpx; + UchBaseMultiplexer& MyMpx; void SetAlarm (Millisecond); void StopAlarm (); public: - UchBaseTimeOut (UchMultiplexer&, Millisecond, int = -1); + UchBaseTimeOut (UchBaseMultiplexer&, Millisecond, int = -1); ~UchBaseTimeOut (); }; @@ -25,7 +37,7 @@ protected: void Handle (Millisecond); public: - UchTimeOut (UchMultiplexer&, Millisecond, void (*) (Millisecond), int = -1); + UchTimeOut (UchBaseMultiplexer&, Millisecond, void (*) (Millisecond), int = -1); ~UchTimeOut (); }; -- cgit v1.1