Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_UTIL_TIMER_H
6 #define ICE_UTIL_TIMER_H
28 #ifndef ICE_CPP11_MAPPING
103 #if (ICE_CPLUSPLUS >= 201703L)
113 return lhs.get() < rhs.get();
116 std::map<TimerTaskPtr, IceUtil::Time, TimerTaskCompare>
_tasks;
123 scheduledTime(st), delay(d), task(t)
139 return task.get() < r.
task.get();
void scheduleRepeated(const TimerTaskPtr &, const IceUtil::Time &)
#define ICE_DEFINE_PTR(TPtr, T)
Definition: Config.h:359
virtual void runTimerTask(const TimerTaskPtr &)
bool operator<(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:109
Token(const IceUtil::Time &, const IceUtil::Time &, const TimerTaskPtr &)
Definition: Timer.h:122
Definition: Optional.h:1095
#define ICE_API
Definition: Config.h:197
IceUtil::Time delay
Definition: Timer.h:92
IceUtil::Time _wakeUpTime
Definition: Timer.h:117
bool operator()(const TimerTaskPtr &lhs, const TimerTaskPtr &rhs) const
Definition: Timer.h:111
bool operator<(const Token &r) const
Definition: Timer.h:128
bool _destroyed
Definition: Timer.h:100
bool cancel(const TimerTaskPtr &)
void schedule(const TimerTaskPtr &, const IceUtil::Time &)
::std::shared_ptr< TimerTask > TimerTaskPtr
Definition: Timer.h:38
std::map< TimerTaskPtr, IceUtil::Time, TimerTaskCompare > _tasks
Definition: Timer.h:116
std::set< Token > _tokens
Definition: Timer.h:101
IceUtil::Monitor< IceUtil::Mutex > _monitor
Definition: Timer.h:99
IceUtil::Time scheduledTime
Definition: Timer.h:91
TimerTaskPtr task
Definition: Timer.h:93
IceUtil::Handle< Timer > TimerPtr
Definition: Timer.h:20
virtual void runTimerTask()=0