[PATCH 0/7] libxshmfence improvements

Adam Jackson ajax at nwnk.net
Wed Nov 20 13:12:07 PST 2013


On Wed, 2013-11-20 at 11:55 -0800, Keith Packard wrote:
> > Keith, can you please fix the xshmfence API to use either 'void *' or
> > an opaque 'struct xshmfence *' instead of 'int32_t *' before we have
> > to live with this design mistake forever?
> 
> I spent this morning cleaning up libxshmfence; it should now work on
> non-Linux systems that support process shared pthread mutexes and
> condition variables.
> 
> I tested it on Linux, but we can't use it there because the pthread
> structures cannot be shared between 32-bit and 64-bit processes.

Hm.  This would presumably fall over if running a Linux binary against a
*BSD Xorg and kernel (or vice-versa if someone implemented BSD binary
compat for Linux).  But _probably_ whoever finds themself in that
particular nightmare scenario would be facing quite a few other
problems.

Series:

Reviewed-by: Adam Jackson <ajax at redhat.com>

- ajax



More information about the xorg-devel mailing list