(C++ version) Fix missing partition type variable in event_loop.