Skip to content

[SYCL] Join thread pool threads on Scheduler destruction #3090

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

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

alexbatashev
Copy link
Contributor

Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.

Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.
@alexbatashev alexbatashev requested a review from a team as a code owner January 25, 2021 08:26
romanovvlad
romanovvlad previously approved these changes Jan 25, 2021
s-kanaev
s-kanaev previously approved these changes Jan 26, 2021
@bader bader merged commit c9c1de9 into intel:sycl Feb 5, 2021
@alexbatashev alexbatashev deleted the wait_thread_pool branch February 5, 2021 10:46
vladimirlaz pushed a commit to vladimirlaz/llvm that referenced this pull request Mar 26, 2021
Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.
vladimirlaz added a commit that referenced this pull request Mar 26, 2021
Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.

Co-authored-by: Alexander Batashev <[email protected]>
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.

4 participants