From 325530e630c68c7c10a2f4339f5b43434fcd0329 Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 28 Nov 2000 14:19:35 +0000 Subject: Incorporation into IvyLeague Ccu -> Ivl ccu -> ivl Smart pointers disappear (too dangerous) Imakefile disappears (Makefile now) An empty cplus_bugs.h has been created locally --- utils/Timer.h | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'utils/Timer.h') diff --git a/utils/Timer.h b/utils/Timer.h index bdeb520..1c5281b 100644 --- a/utils/Timer.h +++ b/utils/Timer.h @@ -19,42 +19,42 @@ #include "bool.h" #include "Time.h" -class CcuSignalHandler; +class IvlSignalHandler; #if 0 -template class CcuListOf; +template class IvlListOf; #else #include "List.h" #endif -class CcuCoreTimer; +class IvlCoreTimer; -class CcuTimerSet { -friend class CcuCoreTimer; +class IvlTimerSet { +friend class IvlCoreTimer; private: - CcuCoreTimer* FirstTimer; + IvlCoreTimer* FirstTimer; #ifndef CPLUS_BUG19 - CcuListOf OtherTimers; + IvlListOf OtherTimers; #else - CcuList OtherTimers; + IvlList OtherTimers; #endif bool FirstIsUpdated; - CcuCoreTimer* ExtractNextActive (); + IvlCoreTimer* ExtractNextActive (); public: -inline CcuTimerSet () : FirstTimer (0), OtherTimers (), FirstIsUpdated (false) {} -inline ~CcuTimerSet () {} +inline IvlTimerSet () : FirstTimer (0), OtherTimers (), FirstIsUpdated (false) {} +inline ~IvlTimerSet () {} //inline bool IsEmpty () const { return bool (FirstTimer == 0); } seems useless (10 may 96) }; -class CcuCoreTimer { -friend class CcuTimerSet; +class IvlCoreTimer { +friend class IvlTimerSet; public: enum timer_status { Active, Inactive }; protected: -static int IsInactive (CcuCoreTimer*); +static int IsInactive (IvlCoreTimer*); - CcuTimerSet* MySet; + IvlTimerSet* MySet; Millisecond NextDate; Millisecond Period; int PulsesLeft; @@ -65,8 +65,8 @@ static int IsInactive (CcuCoreTimer*); void Reschedule (); /*?public?*/ - CcuCoreTimer (Millisecond, int, CcuTimerSet*); -virtual ~CcuCoreTimer (); + IvlCoreTimer (Millisecond, int, IvlTimerSet*); +virtual ~IvlCoreTimer (); public: void ChangePeriod (Millisecond); @@ -85,13 +85,13 @@ virtual void SetAlarm (Millisecond) = 0; virtual void StopAlarm () = 0; public: -static void Fire (CcuTimerSet*); +static void Fire (IvlTimerSet*); }; -class CcuBaseTimer : public CcuCoreTimer { +class IvlBaseTimer : public IvlCoreTimer { private: -static CcuSignalHandler* TimeOutHandler; -static CcuTimerSet* TimerSet; +static IvlSignalHandler* TimeOutHandler; +static IvlTimerSet* TimerSet; static void HandleSignal (int); static void ClassInit (); @@ -100,20 +100,20 @@ protected: void StopAlarm (); public: - CcuBaseTimer (Millisecond, int = -1); - ~CcuBaseTimer (); + IvlBaseTimer (Millisecond, int = -1); + ~IvlBaseTimer (); }; -typedef void (*CcuTimerFun) (Millisecond); +typedef void (*IvlTimerFun) (Millisecond); -class CcuTimer : public CcuBaseTimer { +class IvlTimer : public IvlBaseTimer { protected: void (*Handler) (Millisecond); void Handle (Millisecond); public: - CcuTimer (Millisecond, void (*) (Millisecond), int = -1); - ~CcuTimer (); + IvlTimer (Millisecond, void (*) (Millisecond), int = -1); + ~IvlTimer (); inline void SetHandler (void (*h) (Millisecond)) { Handler = h; } }; -- cgit v1.1