native support of Windows mutex in libgcrypt planned ?

Vincent Torri vincent.torri at gmail.com
Sun Nov 6 19:55:53 CET 2011


On Sun, Nov 6, 2011 at 5:33 PM, Werner Koch <wk at gnupg.org> wrote:

> On Sat,  5 Nov 2011 10:51, vincent.torri at gmail.com said:
>
> > afaics in the libgcrypt code, only pthread or gnu pth is used for
> mutexes.
> > Is it possible to add Windows functions for mutexes ?
>
> You may provide your own callbacks.  Take the
> GCRY_THREAD_OPTION_PTHREAD_IMPL has a template and use
> GCRY_THREAD_OPTION_USER.
>
> The forthcoming Libgcrypt 1.6. will use the system's native thread
> implementation by default.
>

I searched in the latest source code without finding any Win32 calls (like
CreateMutex). Or maybe i didn't understand your remark ?

Vincent Torri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20111106/f242af26/attachment.htm>


More information about the Gcrypt-devel mailing list