On 4/13/12 6:37 PM, Peter Stuge wrote:
Jasmeet Bagga wrote:
Is libssh2 thread safe.
No.
Sorry, I didn't see this response before posting a follow up question.
Allow me to ask a more specific question. Is there a sane way to use
libssh2 from a multi-threaded application ? In my case all ssh sessions
are contained within a single thread. However looking at libssh2's use
of errno, I was wondering if I need to compile libssh2 with -D_REENTRANT
to be able to use it correctly here ?
Jasmeet
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel