[cairo] [PATCH] Do not hold mutexes when calling destructors.

Behdad Esfahbod behdad at behdad.org
Fri May 16 08:05:01 PDT 2008


On Fri, 2008-05-16 at 11:03 -0400, Behdad Esfahbod wrote:
> 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.

I made a fool out of myself again... With function calls in there the
compile can't make such assumptions.

/me goes doing what he's good at...

-- 
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