On Fri, 24 Sep 2004, Bob Jamison wrote:
Hi, all,
I seem to remember us having gthread-2.0 on our link line previously. I am finally getting the trace function to run on a background thread. Does configure.in need to be adjusted? Or just a Makefile.am?
configure.in, with the PKG_CONFIG macro or whatever -- but please don't do this right now.
I need it for the following lines in trace.cpp:
#if HAVE_THREADS //Ensure that thread support is running if (!Glib::thread_supported()) Glib::thread_init();
//Create our thread and run it Glib::Thread::create( sigc::mem_fun(*this, &Trace::convertImageToPathThread), false);
#else convertImageToPathThread(); #endif
Please find another way to do this without using threads. Our codebase isn't remotely thread-safe right now.
One simple approach would be to introduce a few points in the image conversion routines that periodically called out to a function which would run the event loop once.
-mental