[gnome-keyring/gnome-2-30] Fix possible threading race condition in gp11.



commit ca781fee80cdeea3316c62505a298705f5eb2db6
Author: Stef Walter <stef memberwebs com>
Date:   Tue Jun 8 05:20:18 2010 +0000

    Fix possible threading race condition in gp11.
    
    We weren't waking up the main loop when we were ready to process
    a response from an async operation in certain cases.

 gp11/gp11-call.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gp11/gp11-call.c b/gp11/gp11-call.c
index c850b6b..562780d 100644
--- a/gp11/gp11-call.c
+++ b/gp11/gp11-call.c
@@ -530,6 +530,7 @@ _gp11_call_async_short (GP11Call *call, CK_RV rv)
 	/* Already complete, so just push it for processing in main loop */
 	g_assert (GP11_CALL_GET_CLASS (call)->completed_queue);
 	g_async_queue_push (GP11_CALL_GET_CLASS (call)->completed_queue, call);
+	g_main_context_wakeup (NULL);
 }
 
 gpointer



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