Update threaded_integral.c