summaryrefslogtreecommitdiff
path: root/gio/gdbusprivate.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-13 01:00:57 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-13 01:00:57 -0400
commit430c5635f245ca485f09035f1b6c3a59dd69758c (patch)
treea3b745d9c991565a087d157522ebf3b3175497e6 /gio/gdbusprivate.c
parent015f4b4513279c4be40c03121473ffcea347ed84 (diff)
downloadglib-430c5635f245ca485f09035f1b6c3a59dd69758c.tar.gz
g_thread_new: never fail
Remove the GError argument from g_thread_new() and abort on failure. Introduce g_thread_try() for those who want to handle failure.
Diffstat (limited to 'gio/gdbusprivate.c')
-rw-r--r--gio/gdbusprivate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
index b5c770bb6..c30a4ec4b 100644
--- a/gio/gdbusprivate.c
+++ b/gio/gdbusprivate.c
@@ -287,7 +287,6 @@ static SharedThreadData *
_g_dbus_shared_thread_ref (void)
{
static gsize shared_thread_data = 0;
- GError *error = NULL;
SharedThreadData *ret;
if (g_once_init_enter (&shared_thread_data))
@@ -304,9 +303,7 @@ _g_dbus_shared_thread_ref (void)
data->loop = g_main_loop_new (data->context, FALSE);
data->thread = g_thread_new ("gdbus",
gdbus_shared_thread_func,
- data,
- &error);
- g_assert_no_error (error);
+ data);
/* We can cast between gsize and gpointer safely */
g_once_init_leave (&shared_thread_data, (gsize) data);
}