2022-07-17 20:54:10 -05:00
|
|
|
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
2020-12-07 17:43:19 -06:00
|
|
|
|
2020-12-07 12:16:06 -06:00
|
|
|
use std::thread::spawn;
|
|
|
|
|
|
|
|
fn initialize() {
|
|
|
|
initialize_inner(&mut || false)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn initialize_inner(_init: &mut dyn FnMut() -> bool) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let j1 = spawn(initialize);
|
|
|
|
let j2 = spawn(initialize);
|
|
|
|
j1.join().unwrap();
|
|
|
|
j2.join().unwrap();
|
|
|
|
}
|