Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    QUdpSocket and priority

    General and Desktop
    1
    1
    700
    Loading More Posts
    • 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.
    • P
      Pavlya last edited by

      Hello. I write UDP server. Serever is started in the separate thread and receives packets every 20 mS. Thread has QThread::TimeCriticalPriority. Server reads data after readyRead() signal. When I start web-browser (Google Chrome or Firefox), packets are delayed. And packets received after delay time (delay spike). The delay time, which measured by WireShark is 250 mS. The delay time, which measured in the slot (I use QElapsedTimer), where I read data, is 800-900 mS. I think, delay is genereted in the socket thread (in the network module), which works with native socket for OS. When I start server, i see two new thread. First thread has TimeCriticalPriority (it's my thread). And second has normal priority (I think it's qt network thread, which started with qsocket). How can I increase the priority of this thread?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post