dvfs api and toolkits

Owen Taylor otaylor at redhat.com
Mon Apr 4 04:20:41 EEST 2005


On Sun, 2005-04-03 at 18:37 -0400, Sean Middleditch wrote:

> It is entirely possible to build a synchronous wrapper around an
> asynchronous API, but not the other way around.  The method to do so is
> basically along the lines of: begin operation, set callback in toolkit
> event loop, run toolkit loop, check if operation is complete, repeat
> loop if not complete.  The most important bit here is the toolkit part -
> doing a synchronous API is dependent on the toolkit (or, more
> accurately, the event loop) of the application.

A synchronous API *must not* recurse the main loop.

						Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/xdg/attachments/20050403/e37449cf/attachment.pgp 


More information about the xdg mailing list