Open amab8901 opened 1 year ago
This page says: while lock.compare_and_swap(false, true, Ordering::Acquire) { }
while lock.compare_and_swap(false, true, Ordering::Acquire) { }
The problem: pub fn compare_and_swap (&self, current: bool, new: bool, order: Ordering) -> [bool] is deprecated.
pub fn compare_and_swap (&self, current: bool, new: bool, order: Ordering) -> [bool]
Request: update the example to make it applicable for latest version of Rust
This page says:
while lock.compare_and_swap(false, true, Ordering::Acquire) { }
The problem:
pub fn compare_and_swap (&self, current: bool, new: bool, order: Ordering) -> [bool]
is deprecated.Request: update the example to make it applicable for latest version of Rust