//! Multi-threaded get/put profiling target for callgrind (4 threads).
usestd::hint::black_box;usestd::thread;usezeropool::BufferPool;fnmain(){let pool =BufferPool::builder().min_buffer_size(0).build();let handles:Vec<_>=(0..4).map(|_|{let p = pool.clone();thread::spawn(move||{for_in0..500_000{let buf = p.get(black_box(65536));drop(black_box(buf));}})}).collect();for h in handles {
h.join().unwrap();}}