Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21322

Make it possible to use the same socket in multiple threads, so one thread can use it for reading and the other for writing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.7.4
    • Core: Threads
    • None

    Description

      With Qt's socket implementation at the moment only the creating thread can send or receive data on QTcpSockets and QUdpSockets.

      A new feature is requested to be able to use one socket from two threads. One thread reads the receiving pipe and forwards messages to interested application objects and any other second thread can send data on the sending pipe as long as the sending mutex is locked first.

      This is thread safe at the lower level socket API and is a common design pattern with other third party multi-platform socket libraries.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes