[cairo] [PATCH] Do not hold mutexes when calling destructors.
Behdad Esfahbod
behdad at behdad.org
Fri May 16 08:03:42 PDT 2008
On Fri, 2008-05-16 at 01:05 -0700, Robert O'Callahan wrote:
>
> Surely the calls to unlock and lock prevent that optimization? Data
> that's protected by explicit synchronization shouldn't need to be
> declared volatile.
You mean gcc special-cases pthread calls? Otherwise I don't see how a
compile-time optimization can be affected by implemented of those calls
that only comes in when linked to -lpthread.
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list