Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator's SSH classes thread safety

QtCreator's SSH classes thread safety

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marcus.fr
    wrote on last edited by
    #1

    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);
    SshConnectionPtr1->connectToHost();
    ...

    //Thread 2:
    SshConnectionPtr2 = Utils::SshConnection::create(MySshConnectionParameters2);
    SshConnectionPtr2->connectToHost();
    ...
    @

    Thank you very much!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved