diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-08 07:08:23 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-08 07:08:23 +0000 |
commit | e3b226db74ed298ef67e0f2a9683197944ba5c8e (patch) | |
tree | 9abc80a5751a5dbc3292c52bd11074ad711283ab /src | |
parent | c0dda2d3e74d3487f144c8a192c33fec1169a360 (diff) |
fixed compilation without thread support.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2277 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/query_search.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/query_search.c b/src/query_search.c index 770463ca..17755555 100644 --- a/src/query_search.c +++ b/src/query_search.c @@ -589,7 +589,6 @@ static void query_search_folder_show_progress(QueryData *data) #endif } -#if USE_THREADS static gpointer query_search_folder_func(gpointer data) { QueryData *qdata = (QueryData *)data; @@ -666,15 +665,16 @@ static gpointer query_search_folder_func(gpointer data) return GINT_TO_POINTER(0); } -#endif static void query_search_folder(FolderItem *item) { - GThread *thread; gchar *str; QueryData data = {item}; +#if USE_THREADS + GThread *thread; gint prev_count = 0; MsgInfo *msginfo; +#endif if (!item->path || item->stype == F_VIRTUAL) return; @@ -718,12 +718,13 @@ static void query_search_folder(FolderItem *item) g_thread_join(thread); debug_print("query_search_folder: thread exited\n"); -#else + + g_async_queue_free(data.queue); +#else /* !USE_THREADS */ query_search_folder_func(&data); #endif procmsg_set_auto_decrypt_message(TRUE); - g_free(data.folder_name); } |