I am trying to find an implementation of a queue to use it to hold processes that are of type GDB. I have been looking all over the place and whatever I use I get an incompatible type when i try to 开发者_如何转开发enqueue the process of type GDB in the queue. Anyone knows an implementation of a queue that I can use or Hash_table ?
Any general-purpose queue worth using (including one you could roll on your own) should allow you to store void *
, no questions asked.
So you should only store the address of whatever "process of type GDB" means.
I use this one, serves me fine.
精彩评论