Updated to reflect the existence of gthread.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Wed, 16 Dec 1998 09:34:30 +0000 (09:34 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Wed, 16 Dec 1998 09:34:30 +0000 (09:34 +0000)
1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* docs/glib-config.1: Updated to reflect the existence of gthread.

* gmain.c (g_main_poll_add_unlocking): Changed
g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
semantic, (indeed, main_loop must be locked, when calling this
function). Removed the unlocking from the end of that function, as
that is not right. Made a 'HOLDS' comment above the function.

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/glib-config.1
glib/gmain.c
gmain.c

index 622b7eb..ff87d1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 622b7eb..ff87d1e 100644 (file)
@@ -1,3 +1,13 @@
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
 Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
 
         * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
index 0bd8606..d1dac9a 100644 (file)
@@ -1,4 +1,4 @@
-.TH GLIB 1 "24 October 1998" Version 1.1.8
+.TH GLIB 1 "16 December 1998" Version 1.1.8
 .SH NAME
 glib-config - script to get information about the installed version of GLib
 .SH SYNOPSIS
@@ -15,7 +15,7 @@ to the .m4 macros for GNU autoconf that are included with \fIGLib\fP.
 \fIglib-config\fP accepts the following options:
 .TP 8
 .B  LIBRARIES
-\fIGLib\fP has two libraries 'glib' and 'gmodule'.  If you specify one of
+\fIGLib\fP has three libraries 'glib', 'gmodule' and 'gthread'.  If you specify one of
 them, only the appropriate things for that library will be printed.
 .TP 8
 .B  \-\-version
index a6b0e5e..29bd9bf 100644 (file)
@@ -70,11 +70,11 @@ struct _GPollRec {
 
 /* Forward declarations */
 
-static void     g_main_poll              (gint      timeout,
-                                         gboolean  use_priority, 
-                                         gint      priority);
-static void     g_main_poll_add_unlocked (gint      priority,
-                                         GPollFD  *fd);
+static void     g_main_poll               (gint      timeout,
+                                          gboolean  use_priority, 
+                                          gint      priority);
+static void     g_main_poll_add_unlocking (gint      priority,
+                                          GPollFD  *fd);
 
 static gboolean g_timeout_prepare      (gpointer  source_data, 
                                        GTimeVal *current_time,
@@ -588,7 +588,7 @@ g_main_poll (gint timeout, gboolean use_priority, gint priority)
 
       wake_up_rec.fd = wake_up_pipe[0];
       wake_up_rec.events = G_IO_IN;
-      g_main_poll_add_unlocked (0, &wake_up_rec);
+      g_main_poll_add_unlocking (0, &wake_up_rec);
     }
   
   pollrec = poll_records;
@@ -635,13 +635,14 @@ g_main_poll_add (gint     priority,
                 GPollFD *fd)
 {
   G_LOCK (main_loop);
-  g_main_poll_add_unlocked (priority, fd);
+  g_main_poll_add_unlocking (priority, fd);
   G_UNLOCK (main_loop);
 }
 
+/* HOLDS: main_loop_lock */
 static void 
-g_main_poll_add_unlocked (gint     priority,
-                         GPollFD *fd)
+g_main_poll_add_unlocking (gint     priority,
+                          GPollFD *fd)
 {
   GPollRec *lastrec, *pollrec, *newrec;
 
@@ -675,8 +676,6 @@ g_main_poll_add_unlocked (gint     priority,
   newrec->next = pollrec;
 
   n_poll_records++;
-
-  G_UNLOCK (main_loop);
 }
 
 void 
diff --git a/gmain.c b/gmain.c
index a6b0e5e..29bd9bf 100644 (file)
--- a/gmain.c
+++ b/gmain.c
@@ -70,11 +70,11 @@ struct _GPollRec {
 
 /* Forward declarations */
 
-static void     g_main_poll              (gint      timeout,
-                                         gboolean  use_priority, 
-                                         gint      priority);
-static void     g_main_poll_add_unlocked (gint      priority,
-                                         GPollFD  *fd);
+static void     g_main_poll               (gint      timeout,
+                                          gboolean  use_priority, 
+                                          gint      priority);
+static void     g_main_poll_add_unlocking (gint      priority,
+                                          GPollFD  *fd);
 
 static gboolean g_timeout_prepare      (gpointer  source_data, 
                                        GTimeVal *current_time,
@@ -588,7 +588,7 @@ g_main_poll (gint timeout, gboolean use_priority, gint priority)
 
       wake_up_rec.fd = wake_up_pipe[0];
       wake_up_rec.events = G_IO_IN;
-      g_main_poll_add_unlocked (0, &wake_up_rec);
+      g_main_poll_add_unlocking (0, &wake_up_rec);
     }
   
   pollrec = poll_records;
@@ -635,13 +635,14 @@ g_main_poll_add (gint     priority,
                 GPollFD *fd)
 {
   G_LOCK (main_loop);
-  g_main_poll_add_unlocked (priority, fd);
+  g_main_poll_add_unlocking (priority, fd);
   G_UNLOCK (main_loop);
 }
 
+/* HOLDS: main_loop_lock */
 static void 
-g_main_poll_add_unlocked (gint     priority,
-                         GPollFD *fd)
+g_main_poll_add_unlocking (gint     priority,
+                          GPollFD *fd)
 {
   GPollRec *lastrec, *pollrec, *newrec;
 
@@ -675,8 +676,6 @@ g_main_poll_add_unlocked (gint     priority,
   newrec->next = pollrec;
 
   n_poll_records++;
-
-  G_UNLOCK (main_loop);
 }
 
 void