[balsa/gtk3] Build with threads disabled



commit 544fc0a26a5802b267ee124d547a5cc5c3a9e001
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Mar 16 14:26:33 2013 -0400

    Build with threads disabled
    
        * libbalsa/mailbox_local.c (lbm_local_queue_save_tree): build
        with threads disabled.

 ChangeLog                |    5 +++++
 libbalsa/mailbox_local.c |    6 ++----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ff30b4e..72a28ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-03-16  Peter Bloomfield
 
+       * libbalsa/mailbox_local.c (lbm_local_queue_save_tree): build
+       with threads disabled.
+
+2013-03-16  Peter Bloomfield
+
        * libbalsa/libbalsa-conf.c (libbalsa_conf_sync_idle_cb),
        (libbalsa_conf_queue_sync): fix error and use lock only when
        using threads.
diff --git a/libbalsa/mailbox_local.c b/libbalsa/mailbox_local.c
index ae26488..8223381 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -718,13 +718,11 @@ lbm_local_save_tree_idle(LibBalsaMailboxLocal * local)
 static void
 lbm_local_queue_save_tree(LibBalsaMailboxLocal * local)
 {
-    LibBalsaMailbox *mailbox = (LibBalsaMailbox *) local;
-
-    libbalsa_lock_mailbox(mailbox);
+    libbalsa_lock_mailbox((LibBalsaMailbox *) local);
     if (!local->save_tree_id)
         local->save_tree_id =
             g_idle_add((GSourceFunc) lbm_local_save_tree_idle, local);
-    libbalsa_unlock_mailbox(mailbox);
+    libbalsa_unlock_mailbox((LibBalsaMailbox *) local);
 }
 
 /* 


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