Re: Proposal: Enable threads by default

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:
>  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. :)


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