Re: Proposal: Enable threads by default



On Thu, 2009-11-26 at 18:27 +0100, Christian Dywan wrote:
> Am Thu, 26 Nov 2009 14:35:36 +0100
> schrieb Alexander Larsson <alexl redhat com>:
> 
> > This was previously discussed here, but was sort of hidden in a
> > technical discussion so it got no replies. I'm starting over in
> order
> > to reach a wider target for the discussion.
> > 
> > I'll start with the proposal and then explain the reasons for it:
> > 
> > Starting with next glib release: 
> > * libgobject links to libgthread
> > * g_type_init() starts with:
> > 
> > #ifdef G_THREADS_ENABLED
> >  if (g_thread_supported())
> >    g_thread_init (NULL);
> > #endif
> > 
> 
> You mean this:
> 
> if (!g_thread_supported ())
>   g_thread_init (NULL);
> 
> Just to prevent confusion. Since the above snippet wouldn't work. :)

Yeah, thats what i mean. Thanks.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]