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 parallel class #1030

Merged
merged 2 commits into from Oct 31, 2017
Merged

Fix parallel class #1030

merged 2 commits into from Oct 31, 2017

Conversation

gittyupagain
Copy link
Contributor

Threads were leaking due to DispatchQueue::WaitForEvent waiting forever for each thread. The fix was to Rundown the dispatch queue, causing WaitForEvent to abort both existing and future calls.

auto block = m_block;
if (!block)
return;
std::lock_guard<std::mutex> lk(block->m_lock);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jdonald jdonald merged commit ed02b38 into master Oct 31, 2017
@jdonald jdonald deleted the fix-parallel branch October 31, 2017 19:05
@jdonald jdonald added this to the v1.0.5 milestone Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants