atomicbox
atomicbox copied to clipboard
Safe atomic Box types for Rust
Consider adding something like this: ```rust impl AtomicOptionBox { pub fn is_some(&self, ordering: Ordering) -> bool; } ``` It would be helpful for checking whether the box has a value...
What do you think about extending the `AtomicOptionBox` API with a function that only replaces the current content of an `AtomicOptionBox` if it's currently `None`? Possible signature (subject to bikeshedding):...
Currently, `AtomicOptionBox::take` only allows `AcqRel` and `SeqCst`, just like `AtomicOptionBox::swap`. But `AtomicOptionBox::take` is always putting a `None` into the box, which doesn't reference any other data. It still needs to...
With access to `&mut self` or `self`, we are guaranteed to hold the only reference to the object, hence there is no need to read the pointer via atomic load.
`compiletest_rs` seems always failing in my environment. Specifically, it complains about spaces in my `PATH` env and always panics without a reasonable error message. Given all the issues listed [here](https://github.com/dtolnay/trybuild/issues/13#issuecomment-507077406),...