[Pcsclite-muscle] Use of C11 atomic in pcsc-lite?

Ludovic Rousseau ludovic.rousseau at gmail.com
Sat Nov 27 08:33:24 PST 2021


Hello,

To solve a race condition in pcsc-lite one option is to use atomic
operations introduced in C11 (C language version 2011).
See https://en.cppreference.com/w/c/atomic

The proposed patch is https://github.com/LudovicRousseau/PCSC/pull/112

But maybe pcsc-lite is used in systems where a C11 compiler is not available.
Is it your case? Do you use pcsc-lite on a system with no C11 compiler?

If you can build the attached sample code then you have no problem.

Bye

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomic.c
Type: text/x-csrc
Size: 338 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/pcsclite-muscle/attachments/20211127/ca828ed8/attachment.bin>


More information about the pcsclite-muscle mailing list