This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make generic atomicity.h use gthr.h mutexes
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: phil at jaj dot com, libstdc++ at gcc dot gnu dot org
- Date: Fri, 8 Nov 2002 16:53:14 -0600 (CST)
- Subject: Re: Make generic atomicity.h use gthr.h mutexes
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
- References: <20021104235307.A25914@disaster.jaj.com>
>2002-11-07 Phil Edwards <pme@gcc.gnu.org>
> Richard Earnshaw <rearnsha@arm.com>
>
> * atomicity.h: Provide atomic __exchange_and_add and __atomic_add.
This patch has a slight problem in that you can't assume that a gthr.h
mutex may be statically init'd. You need to handle systems (esp. in
the so-called generic code) that only support dynamic init. Once you
see how complex this is to get perfectly correct, you will understand
why I have not volunteered to produce this patch... ;-)