Re: why my program quit when I use g_thread?
- From: Owen Taylor <otaylor redhat com>
- To: Daniel Pekelharing <legendstar gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: why my program quit when I use g_thread?
- Date: Thu, 19 May 2005 12:57:05 -0400
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]