threading by default [was Re: GIO will link with -pthread soon]

On 11/20/2009 01:49 PM, Alexander Larsson wrote:
> What about making g_slice able to handle late initialization of threads,
> but everything else that uses g_thread apis to protect something would
> just get threads auto-initialized. Then super-simple apps using just
> glist and ghashtable would not get threads initialized, but things like
> mainloops and whatnot would always get it.

or for a simpler-to-describe alternative, how about making g_type_init()
call g_thread_init(NULL). Then everything gobject-and-above will always
have threading enabled, but libglib would stay the way it is now, where
everything has to support being able to switch from unthreaded to
threaded at any time.

-- Dan

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