Important: Please read the Qt Code of Conduct -

QtCreator's SSH classes thread safety

  • Hi

    I'm linking dynamically with QtCreator's Utils module in order to use SSH classes. The class Utils::SshConnection has explanation that "..It operates asynchronously (non-blocking) and is not thread-safe". I'm bit confused whit this line since the design of this class is to create new objects of itself for each SSH connection. For instance is this thread safe:

    @//Thread 1:
    SshConnectionPtr1 = Utils::SshConnection::create(MySshConnectionParameters1);

    //Thread 2:
    SshConnectionPtr2 = Utils::SshConnection::create(MySshConnectionParameters2);

    Thank you very much!

Log in to reply