Changeset 5798 for code/branches/core5/src/libraries
- Timestamp:
- Sep 26, 2009, 10:18:24 PM (15 years ago)
- Location:
- code/branches/core5/src/libraries/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/tools/Timer.cc
r5738 r5798 67 67 { 68 68 CommandExecutor::execute(command); 69 delete timer;69 timer->destroy(); 70 70 delaytimerset.erase(timer); 71 71 } … … 77 77 { 78 78 for (std::set<StaticTimer*>::iterator it = delaytimerset.begin(); it != delaytimerset.end(); ++it) 79 delete (*it);79 (*it)->destroy(); 80 80 81 81 delaytimerset.clear(); … … 109 109 @brief Executes the executor. 110 110 */ 111 void TimerBase::run() const111 void TimerBase::run() 112 112 { 113 113 bool temp = this->bKillAfterCall_; // to avoid errors with bKillAfterCall_=false and an exutors which destroy the timer … … 116 116 117 117 if (temp) 118 delete this;118 this->destroy(); 119 119 } 120 120 -
code/branches/core5/src/libraries/tools/Timer.h
r5791 r5798 80 80 ~TimerBase(); 81 81 82 void run() const;82 void run(); 83 83 void deleteExecutor(); 84 84
Note: See TracChangeset
for help on using the changeset viewer.