aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2009-11-25 19:31:22 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2009-11-25 19:34:50 +0800
commitdcaa53ca64b42dc7ad4f613ce10b186e4b4b9255 (patch)
tree9cc97fc7ad99b1ba0f5510541301dccbc20cba89 /calendar
parent22a96605deb96878514f831688a544f135b3a14a (diff)
downloadgsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar.gz
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar.bz2
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar.lz
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar.xz
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.tar.zst
gsoc2013-evolution-dcaa53ca64b42dc7ad4f613ce10b186e4b4b9255.zip
Bug 602102 - [regression] evolution-alarm-notify segv on login to desktop
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index 5544d49c99..d5750e22ca 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -159,6 +159,7 @@ struct _Message {
MessageFunc func;
};
+/*
static void
message_proxy (Message *msg)
{
@@ -170,18 +171,17 @@ message_proxy (Message *msg)
static gpointer
create_thread_pool (void)
{
- /* once created, run forever */
return g_thread_pool_new ((GFunc) message_proxy, NULL, 1, FALSE, NULL);
-}
+}*/
static void
message_push (Message *msg)
{
- static GOnce once = G_ONCE_INIT;
-
- g_once (&once, (GThreadFunc) create_thread_pool, NULL);
-
- g_thread_pool_push ((GThreadPool *) once.retval, msg, NULL);
+ /* This used be pushed through the thread pool. This fix is made to work-around
+ the crashers in dbus due to threading. The threading is not completely removed as
+ its better to have alarm daemon running in a thread rather than blocking main thread.
+ This is the reason the creation of thread pool is commented out */
+ msg->func (msg);
}
/* Queues an alarm trigger for midnight so that we can load the next day's worth