/* * 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 UchBaseMultiplexer; protected: UchBaseMultiplexer& MyMpx; void SetAlarm (Millisecond); void StopAlarm (); public: UchBaseTimeOut (UchBaseMultiplexer&, Millisecond, int = -1); ~UchBaseTimeOut (); }; class UchTimeOut : public UchBaseTimeOut { protected: void (*Handler) (Millisecond); void Handle (Millisecond); public: UchTimeOut (UchBaseMultiplexer&, Millisecond, void (*) (Millisecond), int = -1); ~UchTimeOut (); }; #endif /* UchBaseOut_H_ */