Changes in benchmark/readyQ/locality.rs [ebb6158:f03209d3]
- File:
-
- 1 edited
-
benchmark/readyQ/locality.rs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/locality.rs
rebb6158 rf03209d3 124 124 return (r as *mut MyData, true); 125 125 } 126 let got = self.ptr.compare_ exchange_weak(expected, ctx as *mut MyCtx as u64, Ordering::SeqCst, Ordering::SeqCst);127 if got == Ok(expected){126 let got = self.ptr.compare_and_swap(expected, ctx as *mut MyCtx as u64, Ordering::SeqCst); 127 if got == expected { 128 128 break expected;// We got the seat 129 129 } … … 285 285 assert_eq!(&s, "1,000,000"); 286 286 287 let exp = Arc::new(bench::BenchData::new(options, nprocs , None));287 let exp = Arc::new(bench::BenchData::new(options, nprocs)); 288 288 let mut results = Result::new(); 289 289
Note:
See TracChangeset
for help on using the changeset viewer.