Hi, I wonder if STL is thread-safe or how can I feel safe if I share a STL
container in mutiple threads.
I use VC++6.0.
Thank you!
|
|
0
|
|
|
|
Reply
|
aladdin_sh (5)
|
7/4/2003 1:54:34 PM |
|
"cai" <aladdin_sh@asus.com.cn> wrote in message
news:be40us$vai3$1@ID-147672.news.dfncis.de...
> Hi, I wonder if STL is thread-safe or how can I feel safe if I share a STL
> container in mutiple threads.
> I use VC++6.0.
You're not the first person to ask:
http://tinyurl.com/g18o
--
Russell Hanneken
rhanneken@pobox.com
|
|
0
|
|
|
|
Reply
|
rhanneken (56)
|
7/4/2003 3:03:07 PM
|
|
On Fri, 04 Jul 2003 08:03:07 -0700, Russell Hanneken wrote:
[snip]......
> You're not the first person to ask:
>
> http://tinyurl.com/g18o
I'd like to know what exactly you mean what you say that something is
thread safe. Until now, I was thinking that it meant that it can be used
across threads without the fear of reading a value being modified, or
simultaneously writing to the same variable/resource. But, does it mean
that the code is amenable to mutex protection, as in if you put a mutex
around that piece of code, then it will work with multiple threads?
Regards,
-Dhruv.
|
|
0
|
|
|
|
Reply
|
dhruvbird1 (38)
|
7/7/2003 7:02:51 AM
|
|
Dhruv wrote:
>
> On Fri, 04 Jul 2003 08:03:07 -0700, Russell Hanneken wrote:
>
> [snip]......
>
> > You're not the first person to ask:
> >
> > http://tinyurl.com/g18o
>
> I'd like to know what exactly you mean what you say that something is
> thread safe.
http://groups.google.com/groups?selm=3EE9A956.5B4084EF%40web.de
http://groups.google.com/groups?selm=3ED22764.AA45A8DE%40web.de
regards,
alexander.
|
|
0
|
|
|
|
Reply
|
terekhov (1918)
|
7/7/2003 7:48:48 AM
|
|