Re: why my program quit when I use g_thread?



On Thu, 2005-05-19 at 18:00 +0200, Daniel Pekelharing wrote:
Um, I don't know much about g_thread, but you code is flawed:

if (!g_thread_supported())
g_thread_init();

In other words if g_thread is not supported then init g_thread...
I think you want:

if (g_thread_supported())
g_thread_init();

Unless I got something all wrong here...

g_thread_supported() basically tells you whether g_thread_init()
has already been called.

Regards,
                                        Owen



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