[][src]Type Definition arc_swap::strategy::IndependentStrategy

type IndependentStrategy = HybridStrategy<GenLockStrategy<PrivateUnsharded>>;

Strategy for isolating instances.

It is similar to DefaultStrategy, however the spin lock is not sharded (therefore multiple concurrent threads might get bigger hit when multiple threads have to fall back). Nevertheless, each instance has a private spin lock, not influencing the other instances. That also makes them bigger in memory.

The hazard pointers are still shared between all instances.

The purpose of this strategy is meant for cases where a single instance is going to be "tortured" a lot, so it should not overflow to other instances.

This too may be changed for something else (but with at least as good guarantees, primarily that other instances won't get influenced by the "torture").