added binding for tb_poll_event()