[Pcsclite-cvs-commit] PCSC/src winscard_clnt.c,1.19,1.20

sauveron-guest@quantz.debian.org sauveron-guest@quantz.debian.org
Tue, 16 Dec 2003 23:30:02 +0100


Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv3118/src

Modified Files:
	winscard_clnt.c 
Log Message:
Add mutex for each context and remove the global mutex except for some operations

Index: winscard_clnt.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_clnt.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- winscard_clnt.c	20 Oct 2003 16:32:04 -0000	1.19
+++ winscard_clnt.c	16 Dec 2003 22:29:59 -0000	1.20
@@ -23,10 +23,7 @@
 #include "pcsclite.h"
 #include "winscard.h"
 #include "debuglog.h"
-
-#ifdef USE_THREAD_SAFETY
 #include "thread_generic.h"
-#endif
 
 #include "readerfactory.h"
 #include "eventhandler.h"
@@ -38,27 +35,33 @@
[...1828 lines suppressed...]
-
-		return SCARD_E_READER_UNAVAILABLE;
-
-	}
-	else
-		return SCARD_S_SUCCESS;
-}
-
-/*
  * free resources allocated by the library
  * You _shall_ call this function if you use dlopen/dlclose to load/unload the
  * library. Otherwise you will exhaust the ressources available.
@@ -1978,7 +1994,6 @@
 	if (!isExecuted)
 		return;
 
-	SHMClientCloseSession();
 	SYS_CloseFile(mapAddr);
 	isExecuted = 0;
 }