summaryrefslogtreecommitdiff
path: root/utils/Timer.h
diff options
context:
space:
mode:
authorchatty2000-11-28 14:19:34 +0000
committerchatty2000-11-28 14:19:34 +0000
commit7f84f875dd5343a4ae60ac39d1666527adf90f85 (patch)
tree0d9ae2286a40d37af81c025ee6989cc1c74a371d /utils/Timer.h
parent09f57c8dffd9a8ba0983cce13381aef716f43801 (diff)
downloadivy-league-7f84f875dd5343a4ae60ac39d1666527adf90f85.zip
ivy-league-7f84f875dd5343a4ae60ac39d1666527adf90f85.tar.gz
ivy-league-7f84f875dd5343a4ae60ac39d1666527adf90f85.tar.bz2
ivy-league-7f84f875dd5343a4ae60ac39d1666527adf90f85.tar.xz
Fixed nasty bug triggered when calling Restart in Handle: added FirstIsUpdated
Diffstat (limited to 'utils/Timer.h')
-rw-r--r--utils/Timer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/Timer.h b/utils/Timer.h
index 367a320..bdeb520 100644
--- a/utils/Timer.h
+++ b/utils/Timer.h
@@ -3,7 +3,7 @@
*
* by Stephane Chatty
*
- * Copyright 1992-1995
+ * Copyright 1992-1996
* Centre d'Etudes de la Navigation Aerienne (CENA)
*
* timers
@@ -38,11 +38,12 @@ private:
#else
CcuList OtherTimers;
#endif
+ bool FirstIsUpdated;
CcuCoreTimer* ExtractNextActive ();
public:
-inline CcuTimerSet () : FirstTimer (0), OtherTimers () {}
+inline CcuTimerSet () : FirstTimer (0), OtherTimers (), FirstIsUpdated (false) {}
inline ~CcuTimerSet () {}
-inline bool IsEmpty () const { return bool (FirstTimer == 0); }
+//inline bool IsEmpty () const { return bool (FirstTimer == 0); } seems useless (10 may 96)
};
class CcuCoreTimer {