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

RE: [EXTERNAL] Re: Question about multithreading with libSSH


> -----Original Message-----
> From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
> Sent: Friday, March 27, 2020 12:16 AM
> To: libssh@xxxxxxxxxx
> Cc: Kennedy, Marcus A. <Marcus.Kennedy@xxxxxxxxxx>
> Subject: [EXTERNAL] Re: Question about multithreading with libSSH
>
> On Wednesday, 25 March 2020 21:07:33 CET Kennedy, Marcus A. wrote:
> > Is libSSH thread safe?
>
> Yes, on a session level. One thread, one session.

Bummer.  So then I have to lock the session before use.

Fair enough.  We were seeing strange things when having a writer and a
reader thread both accessing the channel nearly at the same time.

Okay, thanks Andreas!

Andy



References:
Question about multithreading with libSSH"Kennedy, Marcus A." <Marcus.Kennedy@xxxxxxxxxx>
Re: Question about multithreading with libSSHAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org