Results 1 to 1 of 1
Hi,
I'm currently on a project which I share a stl vector between 2 pthreads.
Since I add an array on the top of the vector in one thread and ...
- 04-12-2007 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 11
c++ vector must protected with mutex?
Hi,
I'm currently on a project which I share a stl vector between 2 pthreads.
Since I add an array on the top of the vector in one thread and I read the bottom of the vector in the other thread, do I have to protect the vector with a mutex ????
Thank you.


Reply With Quote