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

main: Convert signal handling to use context. #1712

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 31, 2019

This requires PR #1710 and #1711.

This converts the signal handling and dcrdMain function to use a context with cancellation instead of a separate interrupt channel. It does not really make much of a difference yet, but the intent is to simplify the various subsystems in future commits by refactoring them to make use of the context versus manually handling start and stop in each subsystem.

@davecgh davecgh added this to the 1.5.0 milestone Mar 31, 2019
This converts the signal handling and dcrdMain function to use a context
with cancellation instead of a separate interrupt channel.  It does not
really make much of a difference yet, but the intent is to simplify the
various subsystems in future commits by refactoring them to make use of
the context versus manually handling start and stop in each subsystem.
@davecgh davecgh merged commit 5185257 into decred:master Apr 1, 2019
@davecgh davecgh deleted the main_use_context branch April 1, 2019 19:33
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.

3 participants