[omniORB] Thread-safety of Any with local calls

Chris Newbold cnewbold@laurelnetworks.com
Tue Oct 8 21:27:00 2002


On Tue, 2002-10-08 at 16:10, Duncan Grisby wrote:

> On Friday 4 October, Chris Newbold wrote:
> 
> > But it looks like both value() and marshaling/extraction (via
> > tcParser::copyTo) call rewind_in_mkr() on the underlying bufferedStream.
> > Isn't this going to cause problems?
> 
> Ah, I see that it does in omniORB 3. It no longer rewinds the stream
> in omniORB 4. In both cases, once you've got hold of the pointer to

I think I was managing to hit things just right so that one thread was
calling value() right as another was unmarshaling the Any and the whole
thing got hosed....

-- 
====( Chris Newbold  <cnewbold@laurelnetworks.com> )==========================
      Laurel Networks, Inc. voice: +1 412 809 4200 fax: +1 412 809 4201
"If you fool around with a thing for very long you will screw it up." --Murphy
------------------------------------------------------------------------------