Update of /cvsroot/openvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3178
Modified Files:
Tag: OpenVRML-0_16-BRANCH
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.92.2.9
retrieving revision 1.92.2.10
diff -C2 -d -r1.92.2.9 -r1.92.2.10
*** configure.ac 29 Nov 2006 19:04:36 -0000 1.92.2.9
--- configure.ac 4 Dec 2006 05:17:57 -0000 1.92.2.10
***************
*** 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.1310.2.67
retrieving revision 1.1310.2.68
diff -C2 -d -r1.1310.2.67 -r1.1310.2.68
*** ChangeLog 2 Dec 2006 07:20:06 -0000 1.1310.2.67
--- ChangeLog 4 Dec 2006 05:17:56 -0000 1.1310.2.68
***************
*** 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...>
|