diff options
author | chatty | 1993-07-27 13:54:04 +0000 |
---|---|---|
committer | chatty | 1993-07-27 13:54:04 +0000 |
commit | af836c3ead39838720801f5364d92ca62672f0db (patch) | |
tree | 3d6ce95cb0dd7a80c84c31af4dad31571eec65c5 | |
parent | bda1614db71943e051bd153f48c1e8071d66b5c8 (diff) | |
download | ivy-league-af836c3ead39838720801f5364d92ca62672f0db.zip ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.gz ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.bz2 ivy-league-af836c3ead39838720801f5364d92ca62672f0db.tar.xz |
Added header
-rw-r--r-- | comm/TimeOut.cc | 23 | ||||
-rw-r--r-- | comm/TimeOut.h | 26 |
2 files changed, 38 insertions, 11 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) { 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 (); }; |