gnutls-devel
[Top][All Lists]
Advanced

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

[gnutls-dev] Re: living without global variables


From: Nikos Mavrogiannopoulos
Subject: [gnutls-dev] Re: living without global variables
Date: Fri, 23 Dec 2005 20:43:33 +0100
User-agent: KMail/1.8.2

On Friday 23 December 2005 14:47, Simon Josefsson wrote:

> > The most serious way that these "variables" change during the
> > lifetime of the application is when a piece (module) of the
> > application does a gnutls_global_deinit().  That would blow up some
> > other module in the same application that happens to be using
> > gnutls.
> Yes.  gnutls_global_deinit() should not be called if you want to
> continue to use the library.  No other function modify that variable.

Note also that gnutls_global_init() and deinit() count the number of 
times called. So for these variables to be freed the counter must be 
zero. Thus most of these kind of problems are minimized.

-- 
Nikos Mavrogiannopoulos



reply via email to

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