MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / join

Method join

cranelift/filetests/src/concurrent.rs:82–92  ·  view source on GitHub ↗

Join all the worker threads. Transfer pass timings from the worker threads to the current thread.

(&mut self)

Source from the content-addressed store, hash-verified

80 /// Join all the worker threads.
81 /// Transfer pass timings from the worker threads to the current thread.
82 pub fn join(&mut self) -> timing::PassTimes {
83 assert!(self.request_tx.is_none(), "must shutdown before join");
84 let mut pass_times = timing::PassTimes::default();
85 for h in self.handles.drain(..) {
86 match h.join() {
87 Ok(t) => pass_times.add(&t),
88 Err(e) => println!("worker panicked: {e:?}"),
89 }
90 }
91 pass_times
92 }
93
94 /// Add a new job to the queues.
95 pub fn put(&mut self, jobid: usize, path: &Path) {

Callers 15

add_matchMethod · 0.45
writeMethod · 0.45
drain_threadsMethod · 0.45
fmtMethod · 0.45
mainFunction · 0.45
generate_rust_assemblerFunction · 0.45
fmtMethod · 0.45
comma_joinFunction · 0.45
fmtMethod · 0.45
isle_input_filesMethod · 0.45
get_isle_filesFunction · 0.45

Calls 2

drainMethod · 0.45
addMethod · 0.45

Tested by 2

get_isle_filesFunction · 0.36
build_and_link_isleFunction · 0.36