mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 10:45:13 +01:00
default initialize source_timeout with -1 so we have a sane timeout value
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org> * gmain.c (g_main_iterate): default initialize source_timeout with -1 so we have a sane timeout value if (*prpare) doesn't set it.
This commit is contained in:
parent
7f237f6fcd
commit
85755f7e77
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmain.c (g_main_iterate): default initialize source_timeout with -1
|
||||
so we have a sane timeout value if (*prpare) doesn't set it.
|
||||
|
||||
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
|
||||
|
@ -436,7 +436,7 @@ g_main_iterate (gboolean block,
|
||||
gboolean dispatch)
|
||||
{
|
||||
GHook *hook;
|
||||
GTimeVal current_time;
|
||||
GTimeVal current_time ={ 0, 0 };
|
||||
gint n_ready = 0;
|
||||
gint current_priority = 0;
|
||||
gint timeout;
|
||||
@ -468,7 +468,7 @@ g_main_iterate (gboolean block,
|
||||
{
|
||||
GSource *source = (GSource *)hook;
|
||||
GHook *tmp;
|
||||
gint source_timeout;
|
||||
gint source_timeout = -1;
|
||||
|
||||
if ((n_ready > 0) && (source->priority > current_priority))
|
||||
break;
|
||||
|
4
gmain.c
4
gmain.c
@ -436,7 +436,7 @@ g_main_iterate (gboolean block,
|
||||
gboolean dispatch)
|
||||
{
|
||||
GHook *hook;
|
||||
GTimeVal current_time;
|
||||
GTimeVal current_time ={ 0, 0 };
|
||||
gint n_ready = 0;
|
||||
gint current_priority = 0;
|
||||
gint timeout;
|
||||
@ -468,7 +468,7 @@ g_main_iterate (gboolean block,
|
||||
{
|
||||
GSource *source = (GSource *)hook;
|
||||
GHook *tmp;
|
||||
gint source_timeout;
|
||||
gint source_timeout = -1;
|
||||
|
||||
if ((n_ready > 0) && (source->priority > current_priority))
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user