Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion include/nanoflann.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,13 @@ class KDTreeBaseClass

if (right_future.valid())
{
// While this thread is blocked and waiting for the
// concurrent right sub-tree, allow for an additional
// worker thread elsewhere.
--thread_count;

// Block and wait for concurrent right sub-tree
node->child2 = right_future.get();
--thread_count;
}
else
{
Expand Down
Loading