hi here we have a multi card application that uses one thread and one SCardEstablishContext per card, and the load is prettily balanced among the multiple cards. We can also add and remove cards at runtime. We tested the system with up to 20 cards, it worked without a glitch. The overall transaction time is really reduced with more cards. (we have a command queuing daemon).
The only problem is when we remove usb readers when the application is running (using polled libusb, not hal) But that's ok. (this post is not a bug report but a success report :-) ) Regards, Sebastien. On Tue, Dec 1, 2009 at 8:57 AM, Ludovic Rousseau <[email protected] > wrote: > 2009/11/30 Martin Paljak <[email protected]>: > > Hi. > > Hello, > > > What is the status of multithreaded access to pcsc-lite? Is it supposed > to work? > > Yes. But each thread needs to have its own context. You shall call > SCardEstablishContext() in the newly created thread and you program > should work (not yet tested with your sample). > > I already tried to detect the problem and return > SCARD_E_INVALID_HANDLE but that is not easy. > > I note to add this "limitation" to the "Known differences with > Microsoft Windows WinSCard implementation:" > > Bye > > -- > Dr. Ludovic Rousseau > _______________________________________________ > Muscle mailing list > [email protected] > http://lists.drizzle.com/mailman/listinfo/muscle >
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
