MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
294 stars 181 forks source link

Fix data race in ordered_queue tests #2889

Closed daljit46 closed 6 months ago

daljit46 commented 7 months ago

It was caused accessing the global variable num_items in the constructor of an Item sent to the queue. This is not permissible since items are potentially accessed in parallel by separate threads.

This should be the last item remaining issue before closing #2772 and merging #2763.

Lestropie commented 6 months ago

Actually, this one should be made to master also; it should be included in 3.0.5.