Re: Proposal: Enable threads by default
- From: Tim-Philipp Müller <t i m zen co uk>
- To: gtk-devel-list gnome org
- Subject: Re: Proposal: Enable threads by default
- Date: Thu, 26 Nov 2009 18:15:22 +0000
On Thu, 2009-11-26 at 14:35 +0100, Alexander Larsson wrote:
> 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
>
> This means that everything above gobject can rely on thread primitives
> being availible, and that global stuff in glib (mainloop, gslice,
> globals, etc) are threadsafe.
Yes, please!
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]