Hello,
in my software design I need two threads to access a queue simultaneously. One of them pushes items at the end of the queue and the other one pop items from the same queue. I declared the queue as global. I have a rough idea of how to synchronize two threads accessing the same resource using QMutex but in this case the thread that feeds the queue does it practically almost continuously so how to find a timeslot for the second thread so that it can extract items from the queue.
Can I have a help with the logic?
Thanx
Bookmarks