- Timestamp:
- Aug 22, 2010, 12:27:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/tools/Timer.cc
r6417 r7200 54 54 delaytimerset.insert(delaytimer); 55 55 56 ExecutorStatic*delayexecutor = createExecutor(createFunctor(&executeDelayedCommand));56 const ExecutorStaticPtr& delayexecutor = createExecutor(createFunctor(&executeDelayedCommand)); 57 57 delayexecutor->setDefaultValues(delaytimer, command); 58 58 delaytimer->setTimer(delay, false, delayexecutor); … … 97 97 @param exeuctor A executor of the function to call 98 98 */ 99 Timer::Timer(float interval, bool bLoop, Executor*executor, bool bKillAfterCall)99 Timer::Timer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall) 100 100 { 101 101 this->init(); … … 103 103 104 104 this->setTimer(interval, bLoop, executor, bKillAfterCall); 105 }106 107 /**108 @brief Deletes the executor.109 */110 Timer::~Timer()111 {112 this->deleteExecutor();113 105 } 114 106 … … 138 130 if (temp) 139 131 this->destroy(); 140 }141 142 /**143 @brief Deletes the executor.144 */145 void Timer::deleteExecutor()146 {147 if (this->executor_)148 delete this->executor_;149 132 } 150 133
Note: See TracChangeset
for help on using the changeset viewer.