From: Braden M. <br...@us...> - 2006-12-04 05:18:09
|
Update of /cvsroot/openvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3537 Modified Files: ChangeLog configure.ac Log Message: Call g_thread_init to initialize GLib's thread support for openvrml-gtkplug. Create the GMainLoop for the command reader loop in the command reader thread instead of the main thread. Index: configure.ac =================================================================== RCS file: /cvsroot/openvrml/openvrml/configure.ac,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** configure.ac 29 Nov 2006 19:04:48 -0000 1.102 --- configure.ac 4 Dec 2006 05:18:07 -0000 1.103 *************** *** 111,115 **** [mozilla_js_pkg=$REQUIRE_MOZILLA_JS], [have_js=no])]) ! PKG_CHECK_MODULES([GTK], [gtk+-2.0], , [have_gtk=no]) AC_PATH_XTRA AX_CHECK_GLU --- 111,115 ---- [mozilla_js_pkg=$REQUIRE_MOZILLA_JS], [have_js=no])]) ! PKG_CHECK_MODULES([GTK], [gtk+-2.0 gthread-2.0], , [have_gtk=no]) AC_PATH_XTRA AX_CHECK_GLU Index: ChangeLog =================================================================== RCS file: /cvsroot/openvrml/openvrml/ChangeLog,v retrieving revision 1.1390 retrieving revision 1.1391 diff -C2 -d -r1.1390 -r1.1391 *** ChangeLog 2 Dec 2006 07:20:20 -0000 1.1390 --- ChangeLog 4 Dec 2006 05:18:07 -0000 1.1391 *************** *** 1,2 **** --- 1,23 ---- + 2006-12-04 Braden McDaniel <br...@en...> + + Call g_thread_init to initialize GLib's thread support for + openvrml-gtkplug. Create the GMainLoop for the command reader + loop in the command reader thread instead of the main thread. + + * configure.ac: Incorporate gthread-2.0 flags into GTK_* + variables. + * src/openvrml-gtkplug/main.cpp + (command_channel_loop::command_channel_loop(GIOChannel &, + command_istream &)): Construct with a GIOChannel and a + command_istream. + (command_channel_loop::operator()() const): Create the GMainLoop + and its GMainContext here. + (command_channel_loop::main_loop_): Removed. + (command_channel_loop::command_channel_): Added. + (command_channel_loop::command_in_): Added. + (main(int, char *[])): Call g_thread_init. Moved creation of the + command reader GMainLoop and GMainContext to the command reader + thread. + 2006-12-02 Braden McDaniel <br...@en...> |