diff options
author | chatty | 1993-04-07 11:50:31 +0000 |
---|---|---|
committer | chatty | 1993-04-07 11:50:31 +0000 |
commit | ba066c34dde204aa192d03a23a81356374d93731 (patch) | |
tree | 39391f6235d2cf8a59a0634ac5ea430cdd21f5d4 /comm/TimeOut.h | |
parent | 05ab076e1c2a9ca16472f9a6b47b8d22914b3783 (diff) | |
download | ivy-league-ba066c34dde204aa192d03a23a81356374d93731.zip ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.gz ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.bz2 ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.xz |
Initial revision
Diffstat (limited to 'comm/TimeOut.h')
-rw-r--r-- | comm/TimeOut.h | 32 |
1 files changed, 32 insertions, 0 deletions
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_ */ |