[gnutls-devel] [TLS] multiple clients in one process (was: Re: Deployment ... Re: This working group has failed)

Nico Williams nico at cryptonector.com
Sat Nov 30 01:00:50 CET 2013


On Fri, Nov 29, 2013 at 5:43 PM, Nikos Mavrogiannopoulos
<nmav at gnutls.org> wrote:
> On Fri, 2013-11-29 at 15:35 -0800, Andy Lutomirski wrote:
>> Any self-respecting pthreads implementation should implement
>> PTHREAD_MUTEX_INITIALIZER in such a way that it constant-initializes
>> its data, making it completely safe.  An even better solution would be
>> to use pthread_once.
>
> Unfortuntely that only works with pthreads. What about systems that
> don't have static initializers for locks? Unfortunately we need a
> consistent API for all the supported systems.

See http://stackoverflow.com/questions/3555859/is-it-possible-to-do-static-initialization-of-mutexes-in-windows

Nico
--



More information about the Gnutls-devel mailing list