thread initialization
- From: z pekar gmail com
- To: gtk-list gnome org
- Subject: thread initialization
- Date: Fri, 28 Dec 2007 15:07:56 +0200
I have following thread initialization routine:
if (!g_thread_supported()) {
g_thread_init(NULL);
gdk_threads_init(); // Called to initialize internal mutex
"gdk_threads_mutex".
} else {
g_print("Error: g_thread not supported.\n");
gtk_main_quit ();
}
on the first call of the function that has that code everything works
ok, but on the second call - it enters the else statment and says
Error: g_thread not supported.
what is wrong?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]