X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2Fevent_mgr.hxx;h=007321b852f65158e44ddf75374d333d19911513;hb=2ea2f1b4f29afe7d74e0474ca02874387526e804;hp=4c89b06022da3851df8217cf5d24b45ef969856a;hpb=de1a5f3034e38df01fa8005fa63e55e6db204fd5;p=simgear.git diff --git a/simgear/structure/event_mgr.hxx b/simgear/structure/event_mgr.hxx index 4c89b060..007321b8 100644 --- a/simgear/structure/event_mgr.hxx +++ b/simgear/structure/event_mgr.hxx @@ -51,7 +51,9 @@ private: void siftDown(int n); void siftUp(int n); void growArray(); - void check(); + + // gcc complains there is no function specification anywhere. + // void check(); double _now; HeapEntry *_table; @@ -62,13 +64,13 @@ private: class SGEventMgr : public SGSubsystem { public: - SGEventMgr() { _freezeProp = 0; } - ~SGEventMgr() { _freezeProp = 0; } + SGEventMgr() { _rtProp = 0; } + ~SGEventMgr() { _rtProp = 0; } virtual void init() {} virtual void update(double delta_time_sec); - void setFreezeProperty(SGPropertyNode* node) { _freezeProp = node; } + void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; } /** * Add a single function callback event as a repeating task. @@ -115,7 +117,8 @@ private: double interval, double delay, bool repeat, bool simtime); - SGPropertyNode* _freezeProp; + SGPropertyNode_ptr _freezeProp; + SGPropertyNode_ptr _rtProp; SGTimerQueue _rtQueue; SGTimerQueue _simQueue; };