Subject: Re: libssh2 in a multi threaded application

Re: libssh2 in a multi threaded application

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 29 Mar 2009 20:04:43 +0200 (CEST)

On Sat, 28 Mar 2009, Jean-Louis CHARTON wrote:

> So, could it be possible to have a special initialization function for
> libssh2 library that would do all the non re-entrant but necessary
> initializations one could call early in main before spawning new threads?

Yes, I'm quite sure we need something like that for the OpenSSL/gcrypt inits
to remain safe.

libssh2_init() and libssh2_cleanup() perhaps.

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-03-29