[RFC xserver] os: log a bug whenever WriteToClient is called from the input thread

Olivier Fourdan ofourdan at redhat.com
Thu Feb 23 16:16:13 UTC 2017


Hi,

> > +extern inline int
> > +in_input_thread(void);
> > +
> 
> maybe i am old fashion but this should be done with input.h, should it ?

No, I don't think this is possible (in the middle of a stable release) nor even suitable, it's not a new API intended for drivers to use, it's purely internal to the Xserver to tell if it's safe to send data to clients (i.e. if we are on the main thread and not in the input thread)

Cheers,
Olivier.


More information about the xorg-devel mailing list