Skip to content
Snippets Groups Projects
Commit d130a177 authored by 's avatar
Browse files

Draft version of a fix for #302. There is no obvious reused variable to use a...

Draft version of a fix for #302. There is no obvious reused variable to use a temporary seed for each thread, so instead each thread has a thread-local variable which is uses to seed the rand_r call in scheduler_enqueue. I need to test this doesn't fail at any point (e.g. if we're not in a pthread region) but I'm not sure if it would be encountered outside of a pthread @nnrw56?
parent 5144801d
No related branches found
No related tags found
1 merge request!405Replace calls to rand() by calls to rand_r() in the scheduler
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment