[feature] pollbase and emit_pollevents