Re: bugs regarding late g_thread_init() calls



On Thu, 2007-01-04 at 09:25 -0500, Morten Welinder wrote:

> Note:
> 
>     if (!g_thread_supported ())
>         g_thread_init (NULL);
> 
> bzzzzz!  g_thread_supported called too early.

g_thread_supported is actually a macro.  It's another name for
g_threads_got_initialized basically.  So the idiom above should be safe,
right?

-- 
Bye,
-Torsten




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