[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:

http://api.libssh.org/master/libssh_tutor_threads.html


	Andreas

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

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