18 lines
316 B
Rust
18 lines
316 B
Rust
use std::panic::Location;
|
|
use std::thread::spawn;
|
|
|
|
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();
|
|
}
|