fast_stm

Function atomically

Source
pub fn atomically<T, F>(f: F) -> T
where F: Fn(&mut Transaction) -> StmResult<T>,
Expand description

Run a function atomically by using Software Transactional Memory. It calls to Transaction::with internally, but is more explicit.