[Pcsclite-cvs-commit] r2379 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Mon Feb 5 14:27:52 CET 2007


Author: rousseau
Date: 2007-02-05 14:27:50 +0100 (Mon, 05 Feb 2007)
New Revision: 2379

Modified:
   trunk/PCSC/src/winscard.c
Log:
SCardBeginTransaction(): document the SYS_USleep() call


Modified: trunk/PCSC/src/winscard.c
===================================================================
--- trunk/PCSC/src/winscard.c	2007-02-05 13:16:18 UTC (rev 2378)
+++ trunk/PCSC/src/winscard.c	2007-02-05 13:27:50 UTC (rev 2379)
@@ -1002,6 +1002,9 @@
 		return rv;
 
 	rv = RFLockSharing(hCard);
+
+	/* if the transaction is not yet ready we sleep a bit so the client
+	 * do not retry immediately */
 	if (SCARD_E_SHARING_VIOLATION == rv)
 		SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
 




More information about the Pcsclite-cvs-commit mailing list