[Pcsclite-cvs-commit] r2185 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Wed Oct 11 09:33:50 UTC 2006
Author: rousseau
Date: 2006-10-11 09:33:50 +0000 (Wed, 11 Oct 2006)
New Revision: 2185
Modified:
trunk/PCSC/src/winscard.c
Log:
SCardConnect(): add some debug output in the "waiting for release of
lock"
Modified: trunk/PCSC/src/winscard.c
===================================================================
--- trunk/PCSC/src/winscard.c 2006-10-11 09:32:36 UTC (rev 2184)
+++ trunk/PCSC/src/winscard.c 2006-10-11 09:33:50 UTC (rev 2185)
@@ -245,9 +245,17 @@
/*
* wait until a possible transaction is finished
*/
- while (rContext->dwLockId != 0)
- SYS_USleep(100000);
+ if (rContext->dwLockId != 0)
+ {
+ Log1(PCSC_LOG_INFO, "Waiting for release of lock");
+ while (rContext->dwLockId != 0)
+ SYS_USleep(100000);
+ Log1(PCSC_LOG_INFO, "Lock released");
+ /* Allow the status thread to convey information */
+ SYS_USleep(PCSCLITE_STATUS_POLL_RATE + 10);
+ }
+
/*******************************************
*
* This section tries to determine the
More information about the Pcsclite-cvs-commit
mailing list