[Xcb] old XCBSync question
iano at quirkster.com
Sat Sep 9 18:21:11 PDT 2006
On Sep 9, 2006, at 2:59 PM, Vincent Torri wrote:
> On Sat, 9 Sep 2006, Ian Osgood wrote:
>> On Sep 8, 2006, at 11:17 PM, Vincent Torri wrote:
>>> for the evas engine, I have to call in the same function several
>>> time XCBSync. Don't ask me why. Ask raster :)
>> All right... WHY, RASTER, WHY??? Syncing makes baby Jesus cry.
>> Seriously, we've been looking for provable Sync use cases. Please
>> have raster forward his reasons to the list, especially for
>> something as heinous as multiple Syncs in one function. Attach
>> code if you need to.
> Iirc, when I asked him why, he answered me that these calls where
> there to sync the server when someone uses a client from a very
> distant from the server (with a ssh connection, for example).
Are you sure an XCBFlush isn't sufficient for these cases?
>>> As it is deprecated, I replace it by a call of XCBGetInputFocusReply
>> No, just use XCBAuxSync from xcb-util instead, if you must.
> I do not agree right now : I can remove some round trips when I
> separate the request and the reply.
Sounds like XCBFlush is actually what you want here.
What happens if you leave out the Syncs? Or use flushes instead?
> thank you.
More information about the Xcb