Re: Help with containers, pointers, and threads.
- From: Mike Margerum <junk@xxxxxxxx>
- Date: Wed, 21 Mar 2007 19:30:29 -0400
I apologize. meant to post this in the BCB forum.
Mike Margerum wrote:
Hi guys, I have a C++ app right now that is currently not threaded. I use pointers to elements in maps and vectors. As I understand it, the pointers could be invalidated if I had say, a thread, adding items to the map or list in the background right?.
A solution to this would be to use copies of the object to be truly safe which is fine but would increase my memory footprint.
My question is, would C# references have the same problem? Are the references automatically updated if the object is moved around in the container? What about java?
Are the .net collection classes thread safe?
Are the java collection classes thread safe?
Thanks for the help!
- Follow-Ups:
- Re: Help with containers, pointers, and threads.
- From: Lord Crc
- Re: Help with containers, pointers, and threads.
- References:
- Help with containers, pointers, and threads.
- From: Mike Margerum
- Help with containers, pointers, and threads.
- Prev by Date: Re: 2007 Media Kit, No manuals
- Next by Date: Re: Coderage discounts also for ESD?
- Previous by thread: Help with containers, pointers, and threads.
- Next by thread: Re: Help with containers, pointers, and threads.
- Index(es):
Relevant Pages
|