[RFA] Remove use of queue.h from gdbserver/event-loop.c

Simon Marchi simon.marchi@polymtl.ca
Sat Jun 9 12:42:00 GMT 2018


On 2018-06-07 22:55, Tom Tromey wrote:
> This removes a use of queue.h from gdbserver/event-loop.c, replacing
> it with std::queue.
> 
> I was not completely sure whether std::queue is even that useful.
> Perhaps plain std::list could be used just as easily.

In the end it probably compiles down to the same thing, since std::queue 
is just a wrapper around the underlying container.  The std::queue would 
probably be useful if we wanted to swap the underlying container type 
without changing the code that uses the queue.  I'm fine either way.

Simon



More information about the Gdb-patches mailing list