[Pcsclite-cvs-commit] r5558 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Jan 27 13:44:23 UTC 2011
Author: rousseau
Date: Thu Jan 27 13:44:22 2011
New Revision: 5558
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5558
Log:
profiling: compare threads using pthread_equal() instead of == to make
the code more portable.
Modified:
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=5558&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Thu Jan 27 13:44:22 2011
@@ -191,7 +191,7 @@
t = pthread_self();
for (i=0; i<MAX_THREADS; i++)
- if (0 == threads[i])
+ if (pthread_equal(0, threads[i]))
{
threads[i] = t;
break;
@@ -211,7 +211,7 @@
t = pthread_self();
for (i=0; i<MAX_THREADS; i++)
- if (t == threads[i])
+ if (pthread_equal(t, threads[i]))
break;
if (i>=MAX_THREADS)
More information about the Pcsclite-cvs-commit
mailing list