mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Updated to reflect the existence of gthread.
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.
This commit is contained in:
parent
b2e318ff3e
commit
2e57a36438
10
ChangeLog
10
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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
21
glib/gmain.c
21
glib/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
|
||||
|
21
gmain.c
21
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
|
||||
|
Loading…
Reference in New Issue
Block a user