[PATCH 3/4] dix implementation of the input-thread

Adam Jackson ajax at nwnk.net
Tue Oct 7 07:12:52 PDT 2008


On Wed, 2008-10-01 at 21:40 -0300, Tiago Vignatti wrote:

> diff --git a/dix/main.c b/dix/main.c
> index 267aba5..ac8f010 100644
> --- a/dix/main.c
> +++ b/dix/main.c
> @@ -281,6 +281,9 @@ int main(int argc, char *argv[], char *envp[])
>          config_init();
>         if(serverGeneration == 1)
>         {
> +#ifdef INPUT_THREAD
> +        InitInputThread();
> +#endif
>             CreateWellKnownSockets();
>             InitProcVectors();
>             for (i=1; i<MAXCLIENTS; i++)

I'm really coming to hate ifdefs for this kind of thing.  Can we do this
as:

#ifdef INPUT_THREAD
extern void InitInputThread(void);
#else
#define InitInputThread(x) do {} while (0)
#endif

instead?

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20081007/cd1fbe65/attachment.pgp>


More information about the xorg mailing list