Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QUdpSocket and priority
Forum Updated to NodeBB v4.3 + New Features

QUdpSocket and priority

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 854 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.
  • P Offline
    P Offline
    Pavlya
    wrote on last edited by
    #1

    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
    0

    • Login

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