Concurrent indexing refinement - release the slot while blocked and waiting #260
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

As a follow-up to our previous discussion for PR #236
The idea here to allow additional concurrent threads.
It's necessary to block and wait for the completion of the right child node.
But it seems reasonable and advantageous to allow an additional thread to start working while this one is done doing work.
It's just waiting until it can finalise some administration.
I've changed jobs and don't have the tools and data to test this change in detail.
So I would like to be clear that this change is essentially untried and untested.
I did take a look at MRPT/nanoflann-benchmark but I don't have Matlab or the datasets, looks like I'd need some help or advice getting going there.
But I am curious to know if this provides an additional performance improvement via additional CPU utilisation.
I am a little concerned this could result in a large number of (blocked) threads, beyond what's reasonable?
I'll leave this with you, to evaluate or not, at your discretion.