Re: Running queries via dbus

2010-03-24 Thread Aaron J. Seigo
On March 23, 2010, Alex Merry wrote: > On Tuesday 23 March 2010 23:47:10 Jacopo De Simoi wrote: > > I just got a quite crazy idea; it might work though. > > Since we are making the thread stall by waiting for the async reply we > > could as well check that while we get the pending reply the context

Re: Running queries via dbus

2010-03-23 Thread Alex Merry
On Tuesday 23 March 2010 23:47:10 Jacopo De Simoi wrote: > I just got a quite crazy idea; it might work though. > Since we are making the thread stall by waiting for the async reply we > could as well check that while we get the pending reply the context is > still valid and bail out discarding the

Re: Running queries via dbus

2010-03-23 Thread Jacopo De Simoi
I just got a quite crazy idea; it might work though. Since we are making the thread stall by waiting for the async reply we could as well check that while we get the pending reply the context is still valid and bail out discarding the reply otherwise. If this can be coded in a simple way I gues

Re: Running queries via dbus

2010-03-23 Thread Jacopo De Simoi
> On Tuesday 23 March 2010 21:55:08 Alex Merry wrote: > > Instead, you should use QDBusConnection::asyncCall. This can be used in > > exactly the same way (implicit casting FTW), and casting to a QDBusReply > > will cause the calling thread to block as you would expect. But, > > importantly, it W

Re: Running queries via dbus

2010-03-23 Thread Alex Merry
On Tuesday 23 March 2010 21:55:08 Alex Merry wrote: > Instead, you should use QDBusConnection::asyncCall. This can be used in > exactly the same way (implicit casting FTW), and casting to a QDBusReply > will cause the calling thread to block as you would expect. But, > importantly, it WON'T cause

Re: Running queries via dbus

2010-03-23 Thread Alex Merry
On Tuesday 23 March 2010 22:03:30 Jacopo De Simoi wrote: > > CC'ing plasma-devel, since this is an important point regarding runners > > that use D-Bus. Please keep any discussion on this issue at > > plasma-devel. > > > > On Tuesday 23 March 2010 17:26:54 Alex Merry wrote: > > > On Monday 22 Mar

Re: Running queries via dbus

2010-03-23 Thread Jacopo De Simoi
> CC'ing plasma-devel, since this is an important point regarding runners that > use D-Bus. Please keep any discussion on this issue at plasma-devel. > > On Tuesday 23 March 2010 17:26:54 Alex Merry wrote: > > On Monday 22 March 2010 22:05:26 Jacopo De Simoi wrote: > > > > In particular, Meta::T

Re: Running queries via dbus

2010-03-23 Thread Alex Merry
CC'ing plasma-devel, since this is an important point regarding runners that use D-Bus. Please keep any discussion on this issue at plasma-devel. On Tuesday 23 March 2010 17:26:54 Alex Merry wrote: > On Monday 22 March 2010 22:05:26 Jacopo De Simoi wrote: > > > In particular, Meta::Track has flo