List Info

Thread: Re: ThreadWeaver and asyncronous operations




Re: ThreadWeaver and asyncronous operations
country flaguser name
Portugal
2007-03-27 20:02:51
On Wednesday 28 March 2007 01:29, Paulo Moura Guedes wrote:
> The only problem I noticed is that if the AsyncObject
internals use timers,
> for example, I get the "QObject::startTimer:
timers cannot be started from
> another thread" message.
> I don't understand this however, because the timers are
ran in the same
> thread as the AsyncObject.

BTW, this also happens if I just use QThread :/

Paulo
 
>> Visit 
http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
unsubscribe <<

Re: ThreadWeaver and asyncronous operations
country flaguser name
France
2007-03-28 03:14:38
On Wednesday 28 March 2007, Paulo Moura Guedes wrote:
> On Wednesday 28 March 2007 01:29, Paulo Moura Guedes
wrote:
> > The only problem I noticed is that if the
AsyncObject internals use timers,
> > for example, I get the "QObject::startTimer:
timers cannot be started from
> > another thread" message.
> > I don't understand this however, because the
timers are ran in the same
> > thread as the AsyncObject.
> 
> BTW, this also happens if I just use QThread :/

Make sure to also _create_ the QTimer in the thread and not
in the QThread constructor
(which runs in the calling thread).

-- 
David Faure, faurekde.org, sponsored by Trolltech to work on
KDE,
Konqueror (http://www.konqueror.org
), and KOffice (http://www.koffice.org).
 
>> Visit 
http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
unsubscribe <<

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )