Sunday, 15 September 2013

C++ mutex for multiple threads

C++ mutex for multiple threads

I am trying to share data between two threads via a queue. One thread
pushes into and the other pops from the queue. I got to know that it is
safe to have synchronization between the threads and hence decided to use
mutex. Every forum i see has a #include "mutex" statement in the code, but
i don't seem to find the Mutex file in my system. Please let me know how
to sort out this issue. Is it available for downloading from any website?
If yes, please post the url OR have i gone wrong anywhere?
I am using a Windows machine and Visual Studio 2005 compiler.

No comments:

Post a Comment