[cairo] [PATCH] Do not hold mutexes when calling destructors.
Behdad Esfahbod
behdad at behdad.org
Thu May 15 12:14:37 PDT 2008
On Thu, 2008-05-15 at 15:15 -0400, Jeff Muizelaar wrote:
> On Tue, May 13, 2008 at 12:25:18PM -0400, Behdad Esfahbod wrote:
> > On Tue, 2008-05-13 at 11:29 -0400, Jeff Muizelaar wrote:
> > >
> > > Perhaps. Is there an advantage to clearing the whole cache
> atomically?
> > > If not, I don't really see what making a copy buys us.
> >
> > Doing only two mutex operations instead of 32...
>
> The function is only ever called by cairo_debug_reset_static_data() so
> performance doesn't matter at all.
What if another thread modifies the cache while you have released the
lock?
> -Jeff
--
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