Re: Proposal: asyncronous backends



> The backends' processing function happens in a separate thread, and the
> results should be added as the backends return.  If that's not the case,
> there's probably a locking bug in there.

OK, I'll look into the locking thing. But I still think callbacks is a
useful mechanism to have, because in some circumstances it's very useful
for the backend to be able to refine its results.

For example, with the location display, we can display a location
immediately, then update that display when we get some weather
information from a web service - which is often around 10-20 seconds
later. In this situation, just having separate threads isn't enough.

What do you think?

dave

> 
> Joe
> 
> _______________________________________________
> Dashboard-hackers mailing list
> Dashboard-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/dashboard-hackers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]