@param p Thread pool @param q Process queue @param func Function run by the thread pool @param arg Data for use by func() @return 0 on success -1 on failure
See Implementation
@param p Thread pool @param q Process queue @param func Function run by the thread pool @param arg Data for use by func() @return 0 on success -1 on failure