Search code examples
cqueuehashtable

Queue of defined type implementation in C


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 ?


Solution

  • 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.