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

rousseau at alioth.debian.org rousseau at alioth.debian.org
Tue Jun 19 19:10:19 UTC 2007


Author: rousseau
Date: 2007-06-19 19:10:19 +0000 (Tue, 19 Jun 2007)
New Revision: 2569

Modified:
   trunk/PCSC/src/winscard_clnt.c
Log:
move definitions of SCardLockThread() and SCardUnlockThread() at the
beginning of file and remove their declarations


Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c	2007-06-19 12:37:13 UTC (rev 2568)
+++ trunk/PCSC/src/winscard_clnt.c	2007-06-19 19:10:19 UTC (rev 2569)
@@ -236,9 +236,27 @@
 /*
  * Thread safety functions
  */
-static LONG SCardLockThread(void);
-static LONG SCardUnlockThread(void);
+/**
+ * @brief This function locks a mutex so another thread must wait to use this
+ * function.
+ *
+ * Wrapper to the function SYS_MutexLock().
+ */
+inline static LONG SCardLockThread(void)
+{
+	return SYS_MutexLock(&clientMutex);
+}
 
+/**
+ * @brief This function unlocks a mutex so another thread may use the client.
+ *
+ * Wrapper to the function SYS_MutexUnLock().
+ */
+inline static LONG SCardUnlockThread(void)
+{
+	return SYS_MutexUnLock(&clientMutex);
+}
+
 static LONG SCardEstablishContextTH(DWORD, LPCVOID, LPCVOID, LPSCARDCONTEXT);
 
 /**
@@ -3382,27 +3400,6 @@
 }
 
 /**
- * @brief This function locks a mutex so another thread must wait to use this
- * function.
- *
- * Wrapper to the function SYS_MutexLock().
- */
-inline static LONG SCardLockThread(void)
-{
-	return SYS_MutexLock(&clientMutex);
-}
-
-/**
- * @brief This function unlocks a mutex so another thread may use the client.
- *
- * Wrapper to the function SYS_MutexUnLock().
- */
-inline static LONG SCardUnlockThread(void)
-{
-	return SYS_MutexUnLock(&clientMutex);
-}
-
-/**
  * @brief Checks if the Server is running.
  *
  * @return Error code.




More information about the Pcsclite-cvs-commit mailing list