https://bugs.kde.org/show_bug.cgi?id=411291

--- Comment #8 from Mark <mark...@gmail.com> ---
(In reply to Kai Uwe Broulik from comment #7)
> #include "slavebase.moc" at the end and it should just work

Ha, smart!

Oke, so I've got that to work somewhat, but this isn't easy by far.
The tricky thing is the slot connection for listEntries. They need to run on
the main thread and will be executed by the main thread eventloop (via
Qt::QueuedConnection). Which doesn't exist!

I can call it from the thread's event loop but that makes the sockets _really_
mad and makes the slave crash, hehe :)

Just handling the event in SlaveBase::dispatchLoop also isn't possible because,
well, the main thread were that lives is blocked by the slave.

The only solution i see now is lifting out all socket handling in a separate
(QThread based?) class that isn't blocking and has an eventloop. But that is
waaaaaaay beyond an easy fix.

If you have more ideas, please do share!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to