mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-08 03:45:49 +01:00
Use the right conditional (G_THREADS_ENABLED instead of G_THREAD_ENABLED).
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gmain.c (g_main_context_acquire, g_main_context_release, g_main_context_wait): Use the right conditional (G_THREADS_ENABLED instead of G_THREAD_ENABLED). Also remove wrong return-statement. Unfortunately mainloop-test still does fail. Many thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting this. (#63455)
This commit is contained in:
parent
eb17b20bd2
commit
5cdbc63e47
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2001-10-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_acquire, g_main_context_release,
|
||||||
|
g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
|
||||||
|
instead of G_THREAD_ENABLED). Also remove wrong
|
||||||
|
return-statement. Unfortunately mainloop-test still does fail. Many
|
||||||
|
thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
|
||||||
|
this. (#63455)
|
||||||
|
|
||||||
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
2001-10-31 Matthias Clasen <matthiasc@poet.de>
|
||||||
|
|
||||||
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
|
||||||
|
18
glib/gmain.c
18
glib/gmain.c
@ -1685,7 +1685,7 @@ next_valid_source (GMainContext *context,
|
|||||||
gboolean
|
gboolean
|
||||||
g_main_context_acquire (GMainContext *context)
|
g_main_context_acquire (GMainContext *context)
|
||||||
{
|
{
|
||||||
#ifdef G_THREAD_ENABLED
|
#ifdef G_THREADS_ENABLED
|
||||||
gboolean result = FALSE;
|
gboolean result = FALSE;
|
||||||
GThread *self = G_THREAD_SELF;
|
GThread *self = G_THREAD_SELF;
|
||||||
|
|
||||||
@ -1709,9 +1709,9 @@ g_main_context_acquire (GMainContext *context)
|
|||||||
UNLOCK_CONTEXT (context);
|
UNLOCK_CONTEXT (context);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
#else /* !G_THREAD_ENABLED */
|
#else /* !G_THREADS_ENABLED */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif /* G_THREAD_ENABLED */
|
#endif /* G_THREADS_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1726,7 +1726,7 @@ g_main_context_acquire (GMainContext *context)
|
|||||||
void
|
void
|
||||||
g_main_context_release (GMainContext *context)
|
g_main_context_release (GMainContext *context)
|
||||||
{
|
{
|
||||||
#ifdef G_THREAD_ENABLED
|
#ifdef G_THREADS_ENABLED
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
context = g_main_context_default ();
|
context = g_main_context_default ();
|
||||||
|
|
||||||
@ -1755,9 +1755,7 @@ g_main_context_release (GMainContext *context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
UNLOCK_CONTEXT (context);
|
UNLOCK_CONTEXT (context);
|
||||||
|
#endif /* G_THREADS_ENABLED */
|
||||||
return result;
|
|
||||||
#endif /* G_THREAD_ENABLED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1781,7 +1779,7 @@ g_main_context_wait (GMainContext *context,
|
|||||||
GCond *cond,
|
GCond *cond,
|
||||||
GMutex *mutex)
|
GMutex *mutex)
|
||||||
{
|
{
|
||||||
#ifdef G_THREAD_ENABLED
|
#ifdef G_THREADS_ENABLED
|
||||||
gboolean result = FALSE;
|
gboolean result = FALSE;
|
||||||
GThread *self = G_THREAD_SELF;
|
GThread *self = G_THREAD_SELF;
|
||||||
gboolean loop_internal_waiter;
|
gboolean loop_internal_waiter;
|
||||||
@ -1828,9 +1826,9 @@ g_main_context_wait (GMainContext *context,
|
|||||||
UNLOCK_CONTEXT (context);
|
UNLOCK_CONTEXT (context);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
#else /* !G_THREAD_ENABLED */
|
#else /* !G_THREADS_ENABLED */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif /* G_THREAD_ENABLED */
|
#endif /* G_THREADS_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user