[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Multi-threading
- From: Ахриев Альберт <aaahaaah@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 12 Dec 2017 03:25:58 +0300
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
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.
|Re: Multi-threading||Andreas Schneider <asn@xxxxxxxxxxxxxx>|