Hello,

I started learning about multi threading with Python then C....
solving a classical Consumer/Producer problem...

In python, the class Queue (and its equivalent the GLib (C)) were a good solution it seems... thread-safe queue container, one thread push stuff in it, other pop stuff from it...

I'm porting to C++/Qt, and I was surprised to see no such convenience class inside Qt....
QList, QQueue and co are all unsafe regarding threading.

So I wrote a class around QQueue to make it thread safe...(with mutexes)...

But I'm thinking that maybe such class is absent because there is a more natural way to handle the Consumer/Producer problem in a "Qt way"....

How would you go about it?