From 73e01f07f000a162578fd7f7abb9e8ff7a292f9a Mon Sep 17 00:00:00 2001 From: Sankar P Date: Mon, 11 Aug 2008 09:38:40 +0000 Subject: Words of warning 2008-08-11 Sankar P * camel-db.c: Words of warning svn path=/trunk/; revision=9319 --- camel/ChangeLog | 5 +++++ camel/camel-db.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index 226c7a3e5..b4f9cd9d6 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2008-08-11 Sankar P + + * camel-db.c: + Words of warning + 2008-08-11 Tor Lillqvist * providers/Makefile.am: Set HULA_DIR=hula if ENABLE_HULA. That diff --git a/camel/camel-db.c b/camel/camel-db.c index 9a3459608..4bb9c7da1 100644 --- a/camel/camel-db.c +++ b/camel/camel-db.c @@ -39,6 +39,9 @@ const int MONITOR_DB_PERFORMANCE = 0; +/* Having this as a global variable, without mutex protection is wrong. +This will cause unnecessary crashes and multiple people using the resource etc. +You are advised to use this timer at your own risk. */ static GTimer *timer = NULL; static GStaticRecMutex trans_lock = G_STATIC_REC_MUTEX_INIT; -- cgit v1.2.1