Solid/LibSolid/asyncAPI

From KDE Community Wiki
Revision as of 21:49, 1 October 2011 by Afiestas (talk | contribs) (Created page with "For Frameworks 5 (the next version of libsolid) we want to add an asynchronous api to libsolid. This is needed because we will be adding network base backends and those can't be ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For Frameworks 5 (the next version of libsolid) we want to add an asynchronous api to libsolid. This is needed because we will be adding network base backends and those can't be based in the current synchronous api.

Current problems

The problems can be basically separated in two categories, backend and frontend.

In the backend we are currently iterating through all backends and calling "getDevice". That's ok since now we only have local backends and they are supposed to be fast because of that. The situation changes if we add network based backends into the formula since those, won't be as fast and in anyway if we're going to support the creation of new more backends we can't continue blocking the process until each of the backends finish the "getDevice" job.