Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Windows ce 6.0 r2 - QThread::wait problem.

Windows ce 6.0 r2 - QThread::wait problem.

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 2.4k 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
    mkornal
    wrote on last edited by
    #1

    I work with Windows CE 6.0 r2 and Qt 4.7.4.
    In a slot function is line:
    @QThread::currentThread()->wait(5000);@

    and it doesn't work, just writes warning: "QThread::wait: Thread tried to wait on itself".
    I am not sure if it is important, but the slot is connected to QTcpSocket::readyRead() signal.

    Has anyone had similar problem?

    One more thing with "milliseconds" i background.
    I have message handler function used with qInstallMsgHandler(QtMsgHandler handler) with code:
    @QTime::currentTime().toString("hh:mm:ss:zzz")@

    and the milliseconds are always "000".

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mkornal
      wrote on last edited by
      #2

      OK. I've just recognized that this is the way it works due to QThread::wait() source:
      @if (d->id == GetCurrentThreadId()) {

          qWarning("QThread::wait: Thread tried to wait on itself");
      
          return false;
      
      }@
      

      Can anybody give me a hint with the second issue?

      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