From 05f53ed1b36d6791242595a3a6cbdeb44323bc55 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 8 Jun 2010 05:20:18 +0000 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/gp11/gp11-call.c b/gp11/gp11-call.c index 1adb429..cdc6ed7 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 -- 2.7.4