[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Re: living without global variables
From: |
Simon Josefsson |
Subject: |
[gnutls-dev] Re: living without global variables |
Date: |
Mon, 30 Jan 2006 17:30:46 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Florian Weimer <address@hidden> writes:
> * Simon Josefsson:
>
>> The problem with libgcrypt is that gnutls cannot initialize it
>> correctly, because libgcrypt need to know about threads, of which
>> gnutls know nothing.
>
> This means that you probably need to do away with the need for
> initialization in libgcrypt.
>
> Use .init sections (aka C++ constructors)? Nowadays, they are
> available on most systems. Or what about pthread_once? You only need
> a static initialize to use it.
That seems like a libgcrypt improvement... perhaps the gcrypt-dev list
is more appropriate.
It sounds somewhat unportable to me, though. I don't know, and doubt,
that even fairly popular targets such as mingw32 has it.
Thanks!
[gnutls-dev] Re: living without global variables, Simon Josefsson, 2006/01/09
RE: [gnutls-dev] Re: living without global variables, ZIGLIO, Frediano, VF-IT, 2006/01/03