Re: GIO will link with -pthread soon
- From: Christian Dywan <christian lanedo com>
- To: gtk-devel-list gnome org
- Subject: Re: GIO will link with -pthread soon
- Date: Thu, 12 Nov 2009 16:12:32 +0100
Am Thu, 12 Nov 2009 09:55:34 -0500
schrieb Ryan Lortie <desrt desrt ca>:
> On Thu, 2009-11-12 at 14:57 +0100, Alexander Larsson wrote:
> > One issue with this change is that it sort of breaks the whole
> > reason for having libgthread in a separate library.
>
> Ben has indicated that he thinks that by 3.0 threading should be
> non-optional in all glib applications on the premise that the small
> drop in performance is justified by all of the headaches going away.
> I think he might be right.
There is no Glib 3.0 ;)
It might be interesting however to see some numbers. The "small drop"
is hard to estimate otherwise.
> > Maybe we can link
> > libgio to libgthread instead? It won't make it disappear, but it
> > will at least make the thread lib status standardized across
> > platforms.
>
> I prefer linking to libpthread because it's the smaller hammer. A
> small solution that directly targets the only symptom of the
> problem. If we link to libgthread then I think we should also
> attempt to call g_thread_init(), which is sort of tricky (although we
> could do it from the extension-point initialisation stuff).
That would break any application calling g_thread_init() properly,
wouldn't it?
ciao,
Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]