From ccbc3a36887e4ab7e442c649ddae53f6e964f40f Mon Sep 17 00:00:00 2001 From: Joe Shaw Date: Fri, 6 Jul 2001 04:11:27 +0000 Subject: Add locking to camel_nntp_get_grouplist_from_server(). 2001-07-06 Joe Shaw * providers/nntp/camel-nntp-grouplist.c: Add locking to camel_nntp_get_grouplist_from_server(). * providers/nntp/camel-nntp-resp-codes.h: Added NNTP_EXTENSIONS_SUPPORTED (202). * providers/nntp/camel-nntp-store.c (camel_nntp_store_get_extensions): Check for both NNTP_LIST_FOLLOWS and NNTP_EXTENSIONS_SUPPORTED from a LIST EXTENSIONS request. (Dunno if NNTP_LIST_FOLLOWS ever comes out of this, but that's what was already there...) Also, put some locking around it. (finalize): e_mutex_destroy() the command lock (camel_nntp_store_init): e_mutex_new() the command lock. * providers/nntp/camel-nntp-store.h: Add locking macros. svn path=/trunk/; revision=10838 --- camel/providers/nntp/camel-nntp-grouplist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers/nntp/camel-nntp-grouplist.c') diff --git a/camel/providers/nntp/camel-nntp-grouplist.c b/camel/providers/nntp/camel-nntp-grouplist.c index e77a28821c..8fdc513832 100644 --- a/camel/providers/nntp/camel-nntp-grouplist.c +++ b/camel/providers/nntp/camel-nntp-grouplist.c @@ -37,6 +37,7 @@ camel_nntp_get_grouplist_from_server (CamelNNTPStore *store, CamelException *ex) gboolean done = FALSE; CamelNNTPGroupList *list; + CAMEL_NNTP_STORE_LOCK(store); status = camel_nntp_command (store, ex, NULL, "LIST"); @@ -73,6 +74,7 @@ camel_nntp_get_grouplist_from_server (CamelNNTPStore *store, CamelException *ex) list->group_list = g_list_prepend (list->group_list, entry); } } + CAMEL_NNTP_STORE_UNLOCK(store); list->group_list = g_list_reverse(list->group_list); return list; -- cgit