This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Multiple inheritance and thread safety
- From: Nathan Sidwell <nathan at acm dot org>
- To: "Paul J. Lucas" <pauljlucas at mac dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Jan 2002 09:20:45 +0000
- Subject: Re: Multiple inheritance and thread safety
- References: <Pine.LNX.4.21.0201291502570.4382-100000@oldmac.pauljlucas.org>
- Reply-to: nathan at compsci dot bristol dot ac dot uk
"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