You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation refers several times to support for atomic types, that is, building a BitVec with AtomicUsize backend.
However, I expected in this case that set would use a &self instead of &mut self reference and would make me able to set and get bits concurrently, passing a reference to multiple threads, as it happens with AtomicUsize. I couldn't do it and I cannot find any documentation about it.
So: which are the additional concurrent features one gets when using AtomicUsize as a backend?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The documentation refers several times to support for atomic types, that is, building a BitVec with AtomicUsize backend.
However, I expected in this case that set would use a &self instead of &mut self reference and would make me able to set and get bits concurrently, passing a reference to multiple threads, as it happens with AtomicUsize. I couldn't do it and I cannot find any documentation about it.
So: which are the additional concurrent features one gets when using AtomicUsize as a backend?
Beta Was this translation helpful? Give feedback.
All reactions