some compilers/flags complain about ignoring the return value of __sync_fetch_and_add()
allow to set the pipeline_max parameter
Changes