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 unscheduling tasks when resuming from outside of a task. #60

Merged
merged 5 commits into from
Feb 24, 2018

Conversation

s-ludwig
Copy link
Member

Fixes #58.

Shuts down the pool before terminating the threads to avoid accessing an event thread waiter slot that is not associated with a valid eventcore driver anymore.
@s-ludwig s-ludwig force-pushed the issue58_task_already_scheduled branch from d0fce04 to 9648f0b Compare February 22, 2018 19:10
Previously the task was only removed if switchTo was called from another task. Now it also gets removed when switchTo (e.g. due to a runTask() call) gets called form outside of a task.
@s-ludwig s-ludwig force-pushed the issue58_task_already_scheduled branch from 9648f0b to 2653c8c Compare February 23, 2018 00:25
@s-ludwig s-ludwig force-pushed the issue58_task_already_scheduled branch from 76d5083 to 58ae644 Compare February 23, 2018 10:08
@s-ludwig s-ludwig merged commit 98280be into master Feb 24, 2018
@s-ludwig s-ludwig deleted the issue58_task_already_scheduled branch February 26, 2018 19:35
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

2 participants