diff options
author | Jose <jose@zeroc.com> | 2015-12-01 17:36:19 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-12-01 17:36:19 +0100 |
commit | 2029ff368e49fae489b8ec8fc12f7d126b182dfb (patch) | |
tree | 6075d652b7851831c39e6f22004d8720864f1a60 /cpp/include/IceUtil/Timer.h | |
parent | The default LMDB map size for IceGrid and IceStorm is now 10MB (Windows) (diff) | |
download | ice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.tar.bz2 ice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.tar.xz ice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.zip |
C++11 mapping initial commit
Diffstat (limited to 'cpp/include/IceUtil/Timer.h')
-rw-r--r-- | cpp/include/IceUtil/Timer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Timer.h b/cpp/include/IceUtil/Timer.h index fdaab7fe473..9457730abf6 100644 --- a/cpp/include/IceUtil/Timer.h +++ b/cpp/include/IceUtil/Timer.h @@ -28,7 +28,10 @@ typedef IceUtil::Handle<Timer> TimerPtr; // Extend the TimerTask class and override the runTimerTask() method to execute // code at a specific time or repeatedly. // -class ICE_UTIL_API TimerTask : virtual public IceUtil::Shared +class ICE_UTIL_API TimerTask +#ifndef ICE_CPP11_MAPPING + : virtual public IceUtil::Shared +#endif { public: @@ -36,7 +39,7 @@ public: virtual void runTimerTask() = 0; }; -typedef IceUtil::Handle<TimerTask> TimerTaskPtr; +ICE_DEFINE_PTR(TimerTaskPtr, TimerTask); // // The timer class is used to schedule tasks for one-time execution or |