[Top][All Lists]
[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: |
Mon, 26 Dec 2005 12:20:20 +0100 |
User-agent: |
KMail/1.8.2 |
On Sunday 25 December 2005 15:13, Simon Josefsson wrote:
> Perhaps GnuTLS should deallocate these variables in an `atexit' hook
> instead. Then it seem all of this problem would go away. In GNU
> libc, atexit hooks are even called if GnuTLS was dlopen+dlclose'd.
> gnutls_global_deinit() would then only call gc_done().
I don't see how this can be usefull. Adding a sentance in the
global_init() function that it is not thread safe I think should be
sufficient. This is a one time call initialization function, so it is
perfectly ok to leave the thread stuff to the called application.
--
Nikos Mavrogiannopoulos
- [gnutls-dev] living without global variables, Bryan Henderson, 2005/12/21
- Re: [gnutls-dev] living without global variables, Nikos Mavrogiannopoulos, 2005/12/21
- Re: [gnutls-dev] living without global variables, Bryan Henderson, 2005/12/22
- Message not available
- [gnutls-dev] Re: living without global variables, Bryan Henderson, 2005/12/24
- Message not available
- [gnutls-dev] Re: living without global variables, Simon Josefsson, 2005/12/25
- [gnutls-dev] Re: living without global variables, Bryan Henderson, 2005/12/25
- [gnutls-dev] Re: living without global variables,
Nikos Mavrogiannopoulos <=
- [gnutls-dev] Re: living without global variables, Simon Josefsson, 2005/12/26
- Re: [gnutls-dev] Re: living without global variables, Bryan Henderson, 2005/12/26
- Message not available
- [gnutls-dev] Re: living without global variables, Simon Josefsson, 2005/12/28
- Message not available
- [gnutls-dev] Re: living without global variables, Simon Josefsson, 2005/12/26
Re: [gnutls-dev] living without global variables, Nikos Mavrogiannopoulos, 2005/12/26