Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Patch Available
-
Patch
Description
The TimerManager::remove() method removes all timers with the specified callback, and does so by traversing the list of timers.
This should be improved by returning a "handle" in `TimerManager::add`, and supporting efficiently removing a single timer from its handle:
class TimerManager { Timer add(shared_ptr<Runnable> task, const struct timeval& value); void remove(Timer t); }
Attachments
Issue Links
- links to