[PATCH 1/4] Drop the input-thread core file implementation

Adam Jackson ajax at nwnk.net
Mon Sep 8 08:07:10 PDT 2008


On Sat, 2008-09-06 at 17:33 +0100, Tiago Vignatti wrote:

> +void
> +CloseInputThread (void)
> +{
> +    RemoveEnabledDevice(InputThreadReadPipe);
> +    FD_ZERO(&InputThreadFd);
> +    NumDevicesThreaded = 0;
> +
> +    syscall(__NR_tkill, tid_generation);
> +}

I don't think you meant this.  tkill(2) takes two arguments:

       int tkill(int tid, int sig);

More to the point, tkill is a linuxism.  Any reason to not just use
pthread_kill() ?

- 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/20080908/1c82e95c/attachment.pgp>


More information about the xorg mailing list