Windows ce 6.0 r2 - QThread::wait problem.



  • 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".



  • 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.