add a wrapper for the cpu_thread entry function.