extern "C" void* thread_start_func(void* th_v){ ThreadBase* th = (ThreadBase*) th_v; th->idle_loop(); return 0; }