Discussion:
libssh2 in multithreading
Santiago Ganis
2018-10-12 07:55:24 UTC
Permalink
Hi All,
I need to use libssh2 in a multithreading program in windows. Is there any
documentation or example?
My program will be calling different functions from different threads using
one session. Is it possible to use different sftp channels in different
threads and share a session?
Any recommendation about this design will be helpful.
Thanks.
Peter Stuge
2018-10-13 17:17:32 UTC
Permalink
Post by Santiago Ganis
My program will be calling different functions from different threads using
one session. Is it possible to use different sftp channels in different
threads and share a session?
Any recommendation about this design will be helpful.
libssh2 is not multithread safe so you have to lock the session.


//Peter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-dev
Loading...