[gnome-online-accounts] Revert "goaidentity: Fix deadlock in goaalarm on_cancelled"
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] Revert "goaidentity: Fix deadlock in goaalarm on_cancelled"
- Date: Mon, 16 Sep 2013 01:35:50 +0000 (UTC)
commit 53d660a4bb7841a2da5c7a94d23f96485105b926
Author: Ray Strode <rstrode redhat com>
Date: Sun Sep 15 21:31:48 2013 -0400
Revert "goaidentity: Fix deadlock in goaalarm on_cancelled"
This reverts commit f4c04ad49c29d8f619cb80ef480daa9d4ecdfa38.
It's changes which threads code runs on and is probably causing
100% cpu issues.
https://bugzilla.gnome.org/show_bug.cgi?id=705395
src/goaidentity/goaalarm.c | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/goaidentity/goaalarm.c b/src/goaidentity/goaalarm.c
index ae749f7..79e2a12 100644
--- a/src/goaidentity/goaalarm.c
+++ b/src/goaidentity/goaalarm.c
@@ -256,31 +256,12 @@ goa_alarm_init (GoaAlarm *self)
g_rec_mutex_init (&self->priv->lock);
}
-static gboolean
-async_alarm_cancel_idle_cb (gpointer user_data)
-{
- GoaAlarm *self = user_data;
-
- clear_scheduled_wakeups (self);
- return G_SOURCE_REMOVE;
-}
-
static void
on_cancelled (GCancellable *cancellable, gpointer user_data)
{
GoaAlarm *self = GOA_ALARM (user_data);
- GMainContext *main_context;
- GSource *idle_source;
-
- main_context = g_main_context_ref_thread_default ();
- idle_source = g_idle_source_new ();
- g_source_set_priority (idle_source, G_PRIORITY_HIGH_IDLE);
- g_source_set_callback (idle_source, async_alarm_cancel_idle_cb, g_object_ref (self), g_object_unref);
- g_source_attach (idle_source, main_context);
- g_source_unref (idle_source);
-
- g_main_context_unref (main_context);
+ clear_scheduled_wakeups (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]