VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scheduler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: scheduler.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtScheduler_H_
13 #define DtScheduler_H_
14 
15 #include <vlutil/vlList.h>
16 #include <vrfutil/simClock.h>
17 
18 class DtTimer;
19 class DtSimManager;
20 
29 #include "vrfcore/vrfcoreDefines.h"
30 class DT_DLL_vrfcore DtScheduler : public DtIntrusiveList
31 {
32 public:
33 
36  DtScheduler();
37  DtScheduler(DtSimManager * simManager);
38 
40  DtScheduler(const DtScheduler& orig);
41 
43  DtScheduler& operator=(const DtScheduler& orig);
44 
46  virtual ~DtScheduler();
47 
55  virtual void tick();
56 
59 
63  virtual void addTimer(DtTimer *timer);
64 
67  virtual void removeTimer (DtTimer *timer);
68 
71  virtual void reset(bool clearAll = false);
72 
75  void reSort(DtTimer *timer);
76 
77 protected:
78 
80  void doPendingResorts();
81 
84  void moveToEnd(DtTimer *timer);
85 
89  bool myInTick;
90 
92 };
93 
94 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)