[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: KIO-powered runner?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2012-02-25 7:48:13
Message-ID: 4901095.NFKdKv9AgV () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday, February 24, 2012 23:36:24 Shaun Reich wrote:
> does there currently exist a way to "make" it threadsafe in some way?
> what's the solution for this?

without fully understanding what you are trying to do, here's what i might do:

create an object in the constructor of the runner that will do the KIO. this 
object will therefore live in the main thread of the application. connect a 
slot in this object to a signal from the runner (qt will queue the signals 
from the different threads) and in that slot do the kio. bingo -> async and in 
the main gui thread.

-- 
Aaron J. Seigo
["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic