psyomn/cynic

Dynamically add new timers, and remove old timers.

Closed this issue · 0 comments

An easy way to do this is to add an extra field in the services/events that says whether it's active or not. We then maintain a map with service ids to event pointers, set them to inactive and remove from the map.

Upon wheel rotation, the unused timers will be removed by overwriting.