optimistic_lock_coupling 0.2.5

A General Lock following paper 'Optimistic Lock Coupling: A Scalable and Efficient General-Purpose Synchronization Method'
Documentation
1
2
3
4
5
6
use optimistic_lock_coupling::*;
fn main() {
    let lock = OptimisticLockCoupling::from(1);
    *lock.write().unwrap() += 1;
    assert_eq!(*lock.write().unwrap(), 2);
}