This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]