Looking for xshmfence example code
Theo Veenker
theoveenker at gmail.com
Sat Feb 17 17:59:21 UTC 2018
On 17/02/18 18:31, Clemens Eisserer wrote:
> Hi,
>
> I would like to use XShmPutImage to upload streaming data to Pixmaps,
> however the XSHM extension lacks, as far as I can see, the ability to
> notify the client when the actual ShmPut-request has been processed
> and the client can start modifying a shared memory segment again.
XShmCompletionEvent?
I found this in some old code of mine...
First do:
shmevid = XShmGetEventBase(dpy) + ShmCompletion;
Then in event loop:
if (xevent.type == shmevid) {
XShmCompletionEvent *e = (XShmCompletionEvent*)&event;
printf("event %d on %lu\n", xevent.type, e->shmseg);
}
HTH
Theo
More information about the xorg
mailing list