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

Multi-threading


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?

Could anybody clarify documentation regarding dynamic library linkage should be implemented in case of pthreads? Is it needed for independent sessions (one per thread) as well? What if I do not know the multi-threading backend (Windows, std::thread, etc)?

Thank you in advance.

Follow-Ups:
Re: Multi-threadingAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org