From ba066c34dde204aa192d03a23a81356374d93731 Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 7 Apr 1993 11:50:31 +0000 Subject: Initial revision --- comm/TimeOut.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 comm/TimeOut.h (limited to 'comm/TimeOut.h') diff --git a/comm/TimeOut.h b/comm/TimeOut.h new file mode 100644 index 0000000..9a05cb2 --- /dev/null +++ b/comm/TimeOut.h @@ -0,0 +1,32 @@ +#ifndef UchTimeOut_H_ +#define UchTimeOut_H_ + +#include "ccu/Timer.h" + +class UchBaseTimeOut : public CcuCoreTimer { +friend class UchMultiplexer; + +private: +static void ClassInit (); + +protected: + UchMultiplexer& MyMpx; + void SetAlarm (Millisecond); + void StopAlarm (); + +public: + UchBaseTimeOut (UchMultiplexer&, Millisecond, int = -1); + ~UchBaseTimeOut (); +}; + +class UchTimeOut : public UchBaseTimeOut { +protected: + void (*Handler) (Millisecond); + void Handle (Millisecond); + +public: + UchTimeOut (UchMultiplexer&, Millisecond, void (*) (Millisecond), int = -1); + ~UchTimeOut (); +}; + +#endif /* UchBaseOut_H_ */ -- cgit v1.1