[glib-networking/mcatanzaro/tls-thread: 11/19] progress



commit 714f0e1d97a132c8476acc2992a60064b6ea414b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Aug 9 11:58:51 2019 -0500

    progress

 tls/base/gtlsthread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/base/gtlsthread.c b/tls/base/gtlsthread.c
index 8ecf2f5..b900ea8 100644
--- a/tls/base/gtlsthread.c
+++ b/tls/base/gtlsthread.c
@@ -187,7 +187,7 @@ queue_has_pending_op (GAsyncQueue *queue)
   GTlsThreadOperation *op;
   gboolean ready = FALSE;
 
-  g_async_queue_unlock (queue);
+  g_async_queue_lock (queue);
 
   op = g_async_queue_try_pop_unlocked (queue);
   if (op)
@@ -196,7 +196,7 @@ queue_has_pending_op (GAsyncQueue *queue)
       ready = TRUE;
     }
 
-  g_async_queue_lock (queue);
+  g_async_queue_unlock (queue);
 
   return ready;
 }


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