glib 1.2.2



Seems theres a little coding mistake in glib 1.2.2. Comes up when not
using userland threads. Here is a patch to fix the problem.

// Brad
--- gmain.c.orig	Fri Apr  9 16:54:56 1999
+++ gmain.c	Thu Apr 22 16:55:01 1999
@@ -712,12 +712,14 @@
 
   G_LOCK (main_loop);
 
+#ifdef G_THREADS_ENABLED
   if (poll_waiting)
     {
       g_warning("g_main_iterate(): main loop already active in another thread");
       G_UNLOCK (main_loop);
       return FALSE;
     }
+#endif
   
   /* If recursing, finish up current dispatch, before starting over */
   if (pending_dispatches)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]