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

Re: Multi-threading

On Tuesday, 12 December 2017 01:25:58 CET Ахриев Альберт wrote:
> Dear All, 
> As a newcomer I am struggling to understand how to use libssh in
> multithreaded environment. 
> Very simple question: if application creates in each thread a separate
> instance of ssh session, which runs completely independently from other
> instances, is that enough to guarantee thread-safety? In other words, are
> the state variables of each session really independent?

No, that's not enough see:



Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Re: Multi-threadingNikos Mavrogiannopoulos <nmav@xxxxxxxxxx>
Multi-threadingАхриев Альберт <aaahaaah@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org