Re: Difference from Windows' implementation with regard to PC/SC shared mode

Ludovic Rousseau <[email protected]> Wed, 26 Oct 2016 18:29:37 +0200
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8BOt3KBdybQpbBnMAgqaGMcPawrhQ8fpvMSh_jabs0jYQ@mail.gmail.com>
2016-10-26 12:32 GMT+02:00 Michael Traut <[email protected]>:

> Hi,
>
> i can not unconditionally confirm this behavior under windows. At least
> when using different contexts, the second connect is blocked, even when it
> is shared. I have no example when the same context is used, this may differ.
>

Interesting.
I must admit I have not tested the windows behavior on this. Maybe I should
have test it myself :-(


> Afaik reusing the same context in different threads is considered bad
> practice (http://muscle.musclecard.narkive.com/ZAn5vTFD/multiple-
> threads-and-scardgetstatuschange)?
>

Exact. Using the same hContext in different threads may lead to dead locks.

Maskim, can you try again on Windows but using 2 different hContext
(SCardEstablishContext) in the 2 threads?

Thanks


-- 
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle