Function brotli::enc::multithreading::spawn_work

source ยท
fn spawn_work<ReturnValue: Send + 'static, ExtraInput: Send + 'static, F: Fn(ExtraInput, usize, usize, &U, Alloc) -> ReturnValue + Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync>(
    extra_input: ExtraInput,
    index: usize,
    num_threads: usize,
    locked_input: Arc<RwLock<U>>,
    alloc: Alloc,
    f: F,
) -> JoinHandle<ReturnValue>
where <Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,