-
Notifications
You must be signed in to change notification settings - Fork 1
Update key scheme for the active timers map #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mitza-oci
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but I do have some questions:
- Is a single ACE_Reactor object used for these timers, or is the problem in considering Timer IDs that originate from different reactors?
- Is a single event handler object receiving the handle_timeout for different logical timers and then de-multiplexing on its own? If so, the
argargument toschedule_timershould be something meaningful in the application space (as it seems like you've done here with the latest changes) and not a Timer ID assigned by the reactor.
Each
Yes, there is a single |
|
OK. What I found from reviewing the code is that ACE's Timer IDs are actually unique, except that when they're not needed anymore internally they are recycled. So the scope of uniqueness is only from when the schedule_timer happens until the moment it expires (if not repeating on an interval) or is canceled. |
That's right. The uniqueness I mentioned throughout the PR is from the application perspective/requirements. The timer Ids are indeed unique in the direct context/use of ACE. |
No description provided.