multi-threaded pipeline library