2020-12-07 15:13:11 -06:00
|
|
|
use std::panic::Location;
|
2022-06-20 17:30:34 -05:00
|
|
|
use std::thread::spawn;
|
2020-12-07 15:13:11 -06:00
|
|
|
|
|
|
|
fn initialize() {
|
|
|
|
let _ignore = initialize_inner();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn initialize_inner() -> &'static Location<'static> {
|
|
|
|
Location::caller()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let j1 = spawn(initialize);
|
|
|
|
let j2 = spawn(initialize);
|
|
|
|
j1.join().unwrap();
|
|
|
|
j2.join().unwrap();
|
|
|
|
}
|