make thread function __noinline__