We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab8f3d commit 02d1221Copy full SHA for 02d1221
tests/concurrent-panics.rs
@@ -45,9 +45,9 @@ fn parent() {
45
fn child() {
46
let done = Arc::new(AtomicBool::new(false));
47
let done2 = done.clone();
48
- let a = thread::spawn(move || {
49
- while !done2.load(SeqCst) {
50
- format!("{:?}", backtrace::Backtrace::new());
+ let a = thread::spawn(move || loop {
+ if done2.load(SeqCst) {
+ break format!("{:?}", backtrace::Backtrace::new());
51
}
52
});
53
0 commit comments