haphazard icon indicating copy to clipboard operation
haphazard copied to clipboard

Hazard pointers in Rust.

Results 9 haphazard issues
Sort by recently updated
recently updated
newest added

Now that `array::each_mut` has stabilized (rust-lang/rust#76118), we'll be able to get rid of this unsafe block! We'll have to wait for Rust 1.77 to release this though (and maybe a...

`unique_domain!` will generate a unique type for every macro invocation, however, if the resulting code is executed multiple times, multiple domains with the same family can be created. This is...

We sometimes need to directly use the `protect_raw` function in `HazardPointer`, especially to implement some data structures where protection is validated in a different way. [Michael-Scott queue](https://www.cs.rochester.edu/~scott/papers/1996_PODC_queues.pdf) or [DoubleLink Queue](https://concurrencyfreaks.blogspot.com/2017/01/doublelink-low-overhead-lock-free-queue.html)...

Implements the light/heavy barriers using [`membarrier`](https://docs.rs/membarrier).

```rust let guard = HazardPointer::new(); let ptr1 = guard.protect_ptr(atomic1); let ptr2 = guard.protect_ptr(atomic2); // ① guard.reset_protection(); // ② ``` What does ① do? Does it drop protection for `ptr1` and...

There are a number of features from folly, and possibly from the spec, that we did not initially port. We should create an issue for each one with more details...

Threads with tight latency or timing requirements (e.g. soft real-time, audio, high fps GUI) can't afford to reclaim when retiring objects. There are two ways this could be exposed on...

New PR for #8, with `no_std` support split up into #11.