Multiple inheritance and thread safety
Nathan Sidwell
nathan@acm.org
Wed Jan 30 04:48:00 GMT 2002
"Paul J. Lucas" wrote:
>
> Hi -
>
> I was wondering if there is any know issue with doing multiple
> inheritance with virtual base classes and thread safety.
> Specifically, I was wondering if the thunk code generated is
> known to be thread-safe.
Why is there an issue? The thunk code copies some stack parameters,
which
will be pointers or Pod struct. The vtables are read-only and are only
altered in ctors/dtors which must be single threaded anyway.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
The voices in my head told me to say this
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
More information about the Gcc-bugs
mailing list