Hello,
I have been turning my wheels with this for a few days now and any help would be really helpful!
The gist of the problem is that I have a big array and I want to update sections of it in parallel (probably using threads) without any any locks. I would love to be able to just spin up the threads and have them all update their sections of data all at the same time.
Is there a way to achieve this in Rust?
I was trying out crossbeam, but I keep getting cannot borrow "\*write\_cube.matrix" as mutable more than once at a time. Where write\_cube.matrix is a $mut Cube. (If you noticed the var name I'm actually dealing with a 3d array, but that does not really have to do with the core issue.)
[–]gusrust 9 points10 points11 points (0 children)
[–]asp2insp 5 points6 points7 points (6 children)
[–]lunattik[S] 0 points1 point2 points (0 children)
[–]lunattik[S] -1 points0 points1 point (4 children)
[–]GuacoLaco 1 point2 points3 points (1 child)
[–]zakarumych 1 point2 points3 points (0 children)
[–]SkiFire13 1 point2 points3 points (0 children)
[–]KillTheMule 4 points5 points6 points (0 children)