gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] Re: living without global variables


From: Florian Weimer
Subject: Re: [gnutls-dev] Re: living without global variables
Date: Mon, 30 Jan 2006 17:20:03 +0100

* 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]