Skip to content
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

Guarantee delayed event promotion. #415

Merged
merged 3 commits into from
Feb 13, 2015
Merged

Conversation

gtremper
Copy link
Contributor

It was easy to starve the delayedQueue when manually dispatching events

latestTime
);
}

void DispatchQueue::PromoteReadyEventsUnsafe(void) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this return type to bool and have the return condition indicate whether any dispatchers were promoted. Also recommend a name change to PromoteReadyDispatchersUnsafe--you will need to keep the original name because it's now used in platform, just deprecate it.

@codemercenary
Copy link
Contributor

This is a smart change, makes the DispatchAllEvents method a lot more sensible.

@codemercenary codemercenary force-pushed the ref-dispatchqueue branch 2 times, most recently from 7abad5d to b0b6a19 Compare February 13, 2015 01:02
codemercenary added a commit that referenced this pull request Feb 13, 2015
Guarantee delayed event promotion.
@codemercenary codemercenary merged commit a0403b8 into develop Feb 13, 2015
@codemercenary codemercenary deleted the ref-dispatchqueue branch February 13, 2015 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants