[Xcb] [PATCH] Introduce xcb_aux_alloc_shm() to create anonymous files in RAM

Alexander Volkov a.volkov at rusbitech.ru
Tue Apr 17 14:32:09 UTC 2018


17.04.2018 16:26, Julien Cristau пишет:
> What's the use of replicating the code from libxshmfence instead of 
> just calling into that library?  Or are they somehow subtly different 
> (and if so why)?
See 
https://cgit.freedesktop.org/xorg/lib/libxshmfence/tree/src/xshmfence_alloc.c
xshmfence_alloc_shm() allocated memory and initializes it for xshmfence 
structure,
while introduced xcb_aux_alloc_shm() is a general-purpose function that 
allocates
memory segment of a specified size.


More information about the Xcb mailing list