modify the prototype of xcap::xcap_run, make it support multithread