Wineblood
04-27-2010, 08:26 PM
I'm looking into doing some code on several threads in c++ and thought I could pass data from one to the other using the STL queue rather than locks. However what I've found so far online is either "compiler dependent" or "not safe" with no explanation.
Say I has thread1 pushing objects on the end of a queue and thread2 popping these objects from the other end, would that cause problems or not?
Say I has thread1 pushing objects on the end of a queue and thread2 popping these objects from the other end, would that cause problems or not?