On Mon, Apr 16, 2007 at 10:07:37PM +0200, Vincent Torri wrote:
> On Mon, 16 Apr 2007, Brian Mattern wrote:
> >The following will not work:
> > prop1_fetch();
> > prop2_fetch();
> > prop1_get();
> > prop2_get();
> >(both get() calls will use the reply from prop2_fetch())
> 
> Yes, that last one will not work, and it is in purpose. The reason : when 
> you ask for a reply, you want to use the informations returned by the X 
> server. So there is absolutely no interest in calling _fetch if you don't 
> plan to use the corresponding _get just after.

in that case, could you wrap up the _fetch() call into the _get() one,
and get rid of the global that stores the reply between the two calls?


> >B) although a bunch of prefetch() calls can be queued up, the
> >corresponding fetch() calls must occur in the same order.
> >e.g. one must do:
> > /* queue up some requests */
> > prop1_prefetch();
> > prop2_prefetch();
> >
> > /* some time later */
> > prop1_fetch();
> > prop1_get();
> > prop2_fetch();
> > prop2_get();
> 
> yes. It is important as the X server assure you that the replies are sent 
> in the same order than the requests. You might want different order, but 
> you will maybe have some problems. I can't do much more as it's in X 
> Window spec :)

The problem i see is that for prefetch to really serve any purpose, the
code has to hit the event loop between prefetch and fetch/get. It will
be hard to guarantee that no code gets called in between that does a
full prefetch/fetch/get cycle (which would then be out of order).

I haven't looked at xcb's api, but what are the cookies for if not to
allow one to fetch in a different order than prefetched?

Brian


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to