Fix for the rand_r() call from within a threadpool
@nnrw56 do you foresee any issues with this ? It runs the test-case that previously crashed.
Merge request reports
Activity
That passes all the tests and prevents the crash @dc-arri1 reported (#355 (closed)). Now the question is a matter of style. Are we happy that the threadpool infrastructure becomes heavier ?
I don't really like it
What bothers me is that the whole
threadpool
thing should be independent of anything else. Because, conceptually at least, it is.I'd much rather make a "fake" threadpool mapper function that sets this value and sits at a barrier (to make sure each thread in the threadpool gets a chunk), or even using some completely different approach, e.g. setting the seed to the pointer of the previous task or whatever...
See !411 (merged).
Implemented !411 (merged) instead.