Re: quark hashtable locking
- From: Alexander Larsson <alexl redhat com>
- To: "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: quark hashtable locking
- Date: Thu, 08 Mar 2007 10:31:08 +0100
On Thu, 2007-03-08 at 10:28 +0100, Alexander Larsson wrote:
> Why does gdataset.c use a mutex to protect the quark hashtable. Isn't
> this the ideal place for a readers-writers lock (GStaticRWLock). This
> might not be a heavily contended lock, but it seems like a simple change
> too. Maybe i'm missing something?
Hmm, i see that rw locks are implemented using GMutex, so this might not
be a good idea performance wise, as the locks are held for a short time
anyway.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a lonely ninja messiah who hangs with the wrong crowd. She's a
provocative mute barmaid who inherited a spooky stately manor from her late
maiden aunt. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]