From: Braden M. <br...@us...> - 2007-04-27 03:02:10
|
Update of /cvsroot/openvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27186 Modified Files: ChangeLog Log Message: gtk_vrml_browser_load_url needs to spawn a new thread. Otherwise we can hold up the main event loop and deadlock. Index: ChangeLog =================================================================== RCS file: /cvsroot/openvrml/openvrml/ChangeLog,v retrieving revision 1.1483 retrieving revision 1.1484 diff -C2 -d -r1.1483 -r1.1484 *** ChangeLog 26 Apr 2007 07:44:02 -0000 1.1483 --- ChangeLog 27 Apr 2007 03:01:38 -0000 1.1484 *************** *** 1,4 **** --- 1,23 ---- 2007-04-26 Braden McDaniel <br...@en...> + gtk_vrml_browser_load_url needs to spawn a new thread. Otherwise + we can hold up the main event loop and deadlock. + + * src/openvrml-xembed/gtkvrmlbrowser.cpp + (resource_fetcher): Added thread_group_ for threads spawned from + gtk_vrml_browser_load_url; added create_thread wrapper for + boost::thread::thread_group::create_thread. + (GtkGLViewer): Added member load_url, a thread function object. + (GtkGLViewer::load_url): Thread function object called by thread + spawned from gtk_vrml_browser_load_url. + (gtk_vrml_browser_load_url(GtkVrmlBrowser *, const gchar **, const + gchar **): Delegate to a new thread. + (resource_fetcher::~resource_fetcher()): Join all threads in the + thread group. + (resource_fetcher::create_thread(const boost::function0<void> &)): + Create a new thread. + + 2007-04-26 Braden McDaniel <br...@en...> + * lib/gtkglext/configure.in: Calls to AM_PATH_GLIB_2_0 and AM_PATH_GTK_2_0 aren't doing anything useful; actual dependency |