g_thread_init, gdk_threads_init, gdk_threads_enter and Gtkmm
- From: "Evgeny Repekto" <repekto argosoft gmail com>
 
- To: gtkmm-list gnome org
 
- Subject: g_thread_init, gdk_threads_init, gdk_threads_enter and Gtkmm
 
- Date: Wed, 6 Sep 2006 15:56:07 +0500
 
Hi,
Some days ago I asked about Xlib async error. It seems I solve the
problem but in one point I'm still getting dead lock. Is it critical
to put
	g_thread_init(NULL);
	gdk_threads_init();
before
       Gtk::Main Kit(argc, argv); ?
What I have now is:
       Gtk::Main mKit(argc, argv); //<--- this is first
	g_thread_init(NULL);
	gdk_threads_init();
	gdk_threads_enter();
	Gtk::Main::run(mMainWindow);
	gdk_threads_leave();
So, is it bad to put Kit initialization before threads initialization?
Please, gime an advise.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]