Re: [PATCH v2 00/23] All-stop on top of non-stop

Yao Qi
2015-04-13T16:16:51Z

Pedro Alves <palves@redhat.com> writes:

Pedro,
I can't apply this patch cleanly, so unable to test it for
aarch64-linux. I'll give a test once your V3 is posted, in which this
patch is included, I assume.

> + /* If we have events pending, go through handle_inferior_event
> + again, picking up a pending event at random. This avoids
> + thread starvation. */
> + pending = iterate_over_threads (resumed_thread_with_pending_status,
> + NULL);

A quick question, I don't see how pending events are picked up at
random. Do you mean target_ops->to_wait, such as linux_nat_wait, can
get event at random?

--
Yao (齐尧)