Re: POSIX rwlocks vs. glib2 rwlocks
- From: Erik Walthinsen <omega temple-baptist com>
- To: Sebastian Wilhelmi <wilhelmi ira uka de>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: POSIX rwlocks vs. glib2 rwlocks
- Date: Wed, 20 Jun 2001 01:58:58 -0700 (PDT)
On Wed, 20 Jun 2001, Sebastian Wilhelmi wrote:
> I made a test program, and here are the results for 1000000 locks and unlocks.
>
> GLib Reader locks: 2.6676460000s
> GLib Writer locks: 2.6764440000s
> PThread Reader locks: 2.8518880000s
> PThread Writer locks: 2.5612170000s
>
> So I think we can continue using out home brewed version. The point in not
> using the pthread version is, that our thread system is fully replaceable by a
> user provided implementation. That would mean to either
>
> 1) let rwlocks not be replaceable or
>
> 2) add those 8 functions to the already fat GThreadFunc vector
>
> Both options are not that nice for a dubious win.
OK, with those timings, I agree fully. /me crawls back into hiding <g>
Erik Walthinsen <omega temple-baptist com> - System Administrator
__
/ \ GStreamer - The only way to stream!
| | M E G A ***** http://gstreamer.net/ *****
_\ /_
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]