[Kde-hardware-devel] multithreading restrictions?

Kevin Ottens ervin at kde.org
Sun Feb 10 18:36:27 CET 2008


Le Sunday 18 November 2007, Marcel Wiesweg a écrit :
> I have a bit more for you:
> For testing, I have added this call to the UI thread, before the worker
> thread starts.
>
> >From the worker thread, when the call is executed again, I then get about
> > 8 of
>
> these error messages:
>
> QObject: Cannot create children for a parent that is in a different thread.
> (Parent is Solid::Backends::Hal::HalDevice(0x83f4f88), parent's thread is
> QThread(0x82e33f8), current thread is Digikam::ScanController(0x83ddbc0)

Once again, would you mind making a test case for this?

I can't seem to reproduce your issues.

Now just curious, why do you use a thread in the first place? If that's only 
for a call to Device::list* that looks like overkill.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20080210/13e92688/attachment.pgp 


More information about the Kde-hardware-devel mailing list