fix to the locking so we don't hang
authorHavoc Pennington <hp@redhat.com>
Thu, 1 Nov 2001 00:01:50 +0000 (00:01 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 1 Nov 2001 00:01:50 +0000 (00:01 +0000)
2001-10-31  Havoc Pennington  <hp@redhat.com>

* glib/gmain.c (g_main_loop_run): fix to the locking so we don't
hang

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/glib/tmpl/unicode.sgml
glib/gmain.c

index b6a6db3..3eac356 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index b6a6db3..3eac356 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-31  Havoc Pennington  <hp@redhat.com>
+
+       * glib/gmain.c (g_main_loop_run): fix to the locking so we don't
+       hang
+
 2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make --with-threads=none mean, that we want thread
index 3c6287e..6d64176 100644 (file)
@@ -31,8 +31,9 @@ A type which can hold any UTF-16 character code.
 
 </para>
 
-@charset: 
 @Returns: 
+<!-- # Unused Parameters # -->
+@charset: 
 
 
 <!-- ##### FUNCTION g_unichar_validate ##### -->
index 1103ffa..3d1fa0b 100644 (file)
@@ -2449,11 +2449,13 @@ g_main_loop_run (GMainLoop *loop)
   while (loop->is_running)
     g_main_context_iterate (loop->context, TRUE, TRUE, self);
 
+  UNLOCK_CONTEXT (loop->context);
+  
 #ifdef G_THREADS_ENABLED
   g_main_context_release (loop->context);
 #endif /* G_THREADS_ENABLED */    
   
-  g_main_loop_unref_and_unlock (loop);
+  g_main_loop_unref (loop);
 }
 
 /**