gnu.g++.help
[Top] [All Lists]

Re: Read access to std::map from multiple threads

Subject: Re: Read access to std::map from multiple threads
From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxx>
Date: Thu, 19 Jun 2008 23:24:39 -0700
Newsgroups: gnu.g++.help

mathieu <mathieu.malaterre@xxxxxxxxx> writes:

> On Jun 18, 9:15 pm, Francis Litterio <em...@xxxxxxxxxxxxx> wrote:
>> mathieu wrote:
...
>> > std::map. Those accesses are concurrent (SMP machine). Is there
>> > something I need to do even for read only access ?
                                     ^^^^^^^^^^^^^^^^
...
> #4  0x00002b78ba63bc3f in std::map<...>::insert ()

What made you believe that map::insert() is a read-only access?

-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>