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

Remove worker thread from session. #108

Merged
merged 3 commits into from Feb 3, 2016
Merged

Remove worker thread from session. #108

merged 3 commits into from Feb 3, 2016

Conversation

vktr
Copy link
Member

@vktr vktr commented Feb 2, 2016

This will remove the worker thread from the session class which was responsible for running in the background and reading alerts from the libtorrent session. Instead we use libtorrent::session::set_alert_notify to post a message to our main window which then triggers an alert read.

Removing the worker thread will keep the UI on a single thread, which makes UI updates more safe.

@zp zp mentioned this pull request Feb 2, 2016
vktr added a commit that referenced this pull request Feb 3, 2016
Remove worker thread from session.
@vktr vktr merged commit 5863ee0 into picotorrent:develop Feb 3, 2016
@vktr vktr deleted the f/refactor-threading branch February 3, 2016 09:30
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.

None yet

1 participant