aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-private.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-27 00:45:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-27 00:45:50 +0800
commit4db7ee0b5021bd9c782ad3810d58a450f34def49 (patch)
treebe05b4246bfa30374d679a72cd6b96117a8df2e0 /camel/camel-private.h
parentc0a5e7b7890928a52aa42b131f584ef3acbd5bde (diff)
downloadgsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar.gz
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar.bz2
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar.lz
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar.xz
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.tar.zst
gsoc2013-evolution-4db7ee0b5021bd9c782ad3810d58a450f34def49.zip
Lock the CamelService->priv->connect_lock instead of using our own
2002-08-26 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c: * providers/imap/camel-imap-folder.c: * providers/imap/camel-imap-command.c: Lock the CamelService->priv->connect_lock instead of using our own command_lock. This fixes bug #28177. svn path=/trunk/; revision=17861
Diffstat (limited to 'camel/camel-private.h')
-rw-r--r--camel/camel-private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-private.h b/camel/camel-private.h
index 0530c27fe7..e5a7894e6f 100644
--- a/camel/camel-private.h
+++ b/camel/camel-private.h
@@ -26,7 +26,7 @@
#ifdef __cplusplus
extern "C" {
#pragma }
-#endif /* __cplusplus }*/
+#endif /* __cplusplus */
/* need a way to configure and save this data, if this header is to
be installed. For now, dont install it */
@@ -101,9 +101,11 @@ struct _CamelServicePrivate {
#ifdef ENABLE_THREADS
#define CAMEL_SERVICE_LOCK(f, l) (e_mutex_lock(((CamelService *)f)->priv->l))
#define CAMEL_SERVICE_UNLOCK(f, l) (e_mutex_unlock(((CamelService *)f)->priv->l))
+#define CAMEL_SERVICE_ASSERT_LOCKED(f, l) (e_mutex_assert_locked (((CamelService *)f)->priv->l))
#else
#define CAMEL_SERVICE_LOCK(f, l)
#define CAMEL_SERVICE_UNLOCK(f, l)
+#define CAMEL_SERVICE_ASSERT_LOCKED(f, l)
#endif
struct _CamelSessionPrivate {