[balsa/gtk3] Check for sub-thread



commit ad162f403fc6e089337e767b348c47f4ee76bbe9
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Feb 20 21:38:48 2013 -0500

    Check for sub-thread
    
        * src/balsa-app.c (balsa_find_iter_by_data): check for
        sub-thread.

 ChangeLog       |    5 +++++
 src/balsa-app.c |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 22dc04a..b5ccf17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-02-20  Peter Bloomfield
 
+       * src/balsa-app.c (balsa_find_iter_by_data): check for
+       sub-thread.
+
+2013-02-20  Peter Bloomfield
+
        * src/balsa-app.c (balsa_find_url): thread-safe.
 
 2013-02-20  Peter Bloomfield
diff --git a/src/balsa-app.c b/src/balsa-app.c
index 0769953..9c121a8 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -812,6 +812,10 @@ balsa_find_iter_by_data(GtkTreeIter * iter , gpointer data)
 
     /* We may call it from initial config, it's ok for
        mblist_tree_store not to exist. */
+#ifdef BALSA_DEBUG_THREADS
+    if (libbalsa_am_i_subthread())
+        g_warning("%s sub-thread!\n", __func__);
+#endif
     if(!balsa_app.mblist_tree_store)
         return FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]