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

Ludovic Rousseau ludovic.rousseau at gmail.com
Sat Dec 11 09:09:21 PST 2021


Hello,

I received no objection.
So I plan to use stdatomic.h from C11 in the next version of pcsc-lite.

Should anyone know of any reason that this feature should not be used,
speak now or forever hold your peace.

Bye

Le sam. 27 nov. 2021 à 17:33, Ludovic Rousseau
<ludovic.rousseau at gmail.com> a écrit :
>
> 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



-- 
 Dr. Ludovic Rousseau



More information about the pcsclite-muscle mailing list