ThreadWeaver and asyncronous operations

Thiago Macieira thiago at kde.org
Thu Mar 29 18:24:50 BST 2007


Paulo Moura Guedes wrote:
>QEventDispatcherGlib::registerTimer
>QObject::startTimer_GLIB: timers cannot be started from another thread
>Register Timer for object:  QDBusConnectionPrivate(0x80db958)
>Object thread:  QThread(0x806c158)
>this->thread:  QThread(0x806c158)
>QThread::currentThread:  MyThread(0x8127870)
>
>The problem isn't with my timers but with QDBus timers.
>I guess this will happen everytime threads are used.
>This can cause any problems or should be ignored?

Yes, it'll cause problems.

You are not allowed to use QtDBus from outside the main thread. Yet.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070329/c3d9b1af/attachment.sig>


More information about the kde-core-devel mailing list