[rhythmbox/wip/hadess/fix-some-deprecated-code: 1/4] Remove call to g_thread_supported()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/fix-some-deprecated-code: 1/4] Remove call to g_thread_supported()
- Date: Fri, 13 Sep 2019 09:30:13 +0000 (UTC)
commit f2adb254f3a64dfc0f938d4c37ce837f3cf4854b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 13 10:57:45 2019 +0200
Remove call to g_thread_supported()
Threading is always supported since glib 2.32. See:
https://developer.gnome.org/glib/2.34/glib-Deprecated-Thread-APIs.html#g-thread-init
lib/rb-util.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/lib/rb-util.c b/lib/rb-util.c
index 2cbd5e4e2..cc648f7de 100644
--- a/lib/rb-util.c
+++ b/lib/rb-util.c
@@ -302,11 +302,7 @@ rb_safe_strcmp (const char *a,
gboolean
rb_is_main_thread (void)
{
- if (g_thread_supported()) {
- return GPOINTER_TO_UINT(g_private_get (&private_is_primary_thread)) == 1;
- } else {
- return TRUE;
- }
+ return GPOINTER_TO_UINT(g_private_get (&private_is_primary_thread)) == 1;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]