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

Some cleanup and refactor #398

Merged
merged 6 commits into from
Jan 26, 2019
Merged

Some cleanup and refactor #398

merged 6 commits into from
Jan 26, 2019

Conversation

alexmaco
Copy link
Contributor

Not a complete form, but this beings some cleanup and function splitting mentioned in #382

This is not a very focused set of changes, just picking some low hanging refactoring fruit.

@alexmaco alexmaco changed the title Some seanup and refactor Some cleanup and refactor Jan 26, 2019
@alexmaco
Copy link
Contributor Author

It looks like the Travis checks are failing due to setup issues, not the PR per se.


// Drop the initial sender. If we don't do this, the receiver will block even
// if all threads have finished, since there is still one sender around.
drop(tx);
Copy link
Owner

Choose a reason for hiding this comment

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

If I understand this correctly, calling drop explicitly is not needed anymore because tx is moved into the spawn_senders function and dropped at the end of the function scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is correct. It's explained in the commit message of a05312e

Copy link
Owner

Choose a reason for hiding this comment

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

Ah, perfect! I missed that, sorry.

@sharkdp
Copy link
Owner

sharkdp commented Jan 26, 2019

Awesome work, thank you very much!

@sharkdp sharkdp merged commit fe53af0 into sharkdp:master Jan 26, 2019
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