-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atomic drain set #17
Comments
I need this for efficient implementation of |
We could have the ordering known to |
@kvark wouldn't it slow down execution? |
Hmm, that might be the case. Associated const sounds good to me. |
@omni-viral Do you still need this? |
I don't need it now. But it may be useful for those who use futures. |
It would be cool to have an
BitSetLike
which supportsadd_atomic
asAtomicBItSet
do but alsodrain_atomic
which will unset all set bits yield their ids.Implementation should be similar to
AtomicBItSet
except of usingOrdering::Release
inadd_atomic
. While draining it should swap mask with0
usingOrdering::Acquire
and move to the next level for each bit set (yield at lowest level).The text was updated successfully, but these errors were encountered: