Subject: Re: Thread safety issues

Re: Thread safety issues

From: jmk <>
Date: Tue, 31 Aug 2010 16:02:49 -0500

On Tue, 2010-08-31 at 22:54 +0200, Simon Josefsson wrote:
> It may be simpler to call libssh2_init globally before firing up any
> threads. Then you only need to supply mutexes to the crypto library.

Not feasible given the current design of my application -- all SSH code
is contained within a module, which can be loaded by one or more
threads. The core application doesn't have any SSH specific code in it.
Fortunately, calling libssh2_init() multiple times doesn't *appear* to
be causing me any issues.


Received on 2010-08-31