Changeset ebb6158 for benchmark/readyQ/transfer.rs
- Timestamp:
- Sep 14, 2021, 12:47:47 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- a3769cc, fdfb0ba
- Parents:
- 72bd9cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/transfer.rs
r72bd9cd rebb6158 4 4 use std::process; 5 5 use std::option; 6 use std::hint; 6 7 use std::sync::Arc; 7 8 use std::sync::atomic::{AtomicUsize, Ordering}; … … 104 105 debug!( "Waiting for :{} ({})", t.id, t.idx.load(Ordering::Relaxed) ); 105 106 while t.idx.load(Ordering::Relaxed) != idx { 106 std::sync::atomic::spin_loop_hint();107 hint::spin_loop(); 107 108 if start.elapsed() > Duration::from_secs(5) { 108 109 eprintln!("Programs has been blocked for more than 5 secs");
Note: See TracChangeset
for help on using the changeset viewer.