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

Fix behavior of a 0 second timer, avoid processing them in a task #1204

Merged
merged 3 commits into from
Sep 21, 2015
Merged

Fix behavior of a 0 second timer, avoid processing them in a task #1204

merged 3 commits into from
Sep 21, 2015

Conversation

etcimon
Copy link
Contributor

@etcimon etcimon commented Jul 31, 2015

This fixes the immediate return issue in waitForData for 0 second timers, amonst other problems.

I think a negative duration might be better suited for immediate timers, since the 0 second already has defined behavior in some cases, mostly because libevent seems to never set a timer (infinite duration)

@etcimon
Copy link
Contributor Author

etcimon commented Aug 5, 2015

Don't forget this patch for release, processTimers wasnt being run correctly

@etcimon
Copy link
Contributor Author

etcimon commented Sep 21, 2015

Bump

return;
}
else
if (m_nextSched != next)
Copy link
Member

Choose a reason for hiding this comment

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

This if looks like it's redundant.

@etcimon
Copy link
Contributor Author

etcimon commented Sep 21, 2015

Bump this too: #1247

@s-ludwig
Copy link
Member

Okay, looks good. Just that I unfortunately missed this before release anyway...

It needs a rebase, though (merge conflicts).

@etcimon
Copy link
Contributor Author

etcimon commented Sep 21, 2015

It needs a rebase, though (merge conflicts).

Done

@s-ludwig
Copy link
Member

Thanks!

s-ludwig added a commit that referenced this pull request Sep 21, 2015
Fix behavior of a 0 second timer, avoid processing them in a task
@s-ludwig s-ludwig merged commit 43f1b7e into vibe-d:master Sep 21, 2015
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