[Pcsclite-cvs-commit] r1636 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Thu Sep 1 13:23:12 UTC 2005
Author: rousseau
Date: 2005-09-01 13:23:11 +0000 (Thu, 01 Sep 2005)
New Revision: 1636
Modified:
trunk/PCSC/src/winscard_clnt.c
Log:
SCardCancel(): do not synchronise using .mMutex since it may be hold by
another thread blocked for a very long time in SCardGetStatusChange()
Thanks to Roland van Rijswijk for a preliminary patch
Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c 2005-09-01 12:38:09 UTC (rev 1635)
+++ trunk/PCSC/src/winscard_clnt.c 2005-09-01 13:23:11 UTC (rev 1636)
@@ -2718,16 +2718,12 @@
if (dwContextIndex == -1)
return SCARD_E_INVALID_HANDLE;
- SYS_MutexLock(psContextMap[dwContextIndex].mMutex);
-
/*
* Set the block status for this Context so blocking calls will
* complete
*/
psContextMap[dwContextIndex].contextBlockStatus = BLOCK_STATUS_RESUME;
- SYS_MutexUnLock(psContextMap[dwContextIndex].mMutex);
-
return SCARD_S_SUCCESS;
}
More information about the Pcsclite-cvs-commit
mailing list