`GetSingleThread()` seems to be incorrectly used
I think in its current state the method GetSingleThread
does not work as expected.
Currently, all this method do is to return true
if the current scope is the one of the first thread in the thread-pool.
- There is no guarantee this method will return true at least once during the task-pool life
- There is no guarantee this method will return true at most once during the task-pool life
Looking at the comment here, I am not sure the current behavior is expected.
Should we add a GetSingleScope
that would mimic omp single
instead ? I think this is what was intended here.
Edited by Charles Gueunet