gallium: block signals for new thread when spawning threads
authorDave Airlie <airlied@redhat.com>
Sun, 15 May 2011 06:41:54 +0000 (16:41 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 15 May 2011 20:40:26 +0000 (06:40 +1000)
commitbc16c73407d11bb6702cf7de9925bfaeb80a5272
tree12ee481ed773ffb80d695f6c50097cb7b91af544
parentbd5b7a6f7113da38a2c1f07a4a71e9993666a567
gallium: block signals for new thread when spawning threads

I'm hard pressed to think of any reason a gallium thread would want to
receive a signal, especially considering its probably loaded as a library
and you don't want the threads interfering with the main threads signal
handling.

This solves a problem loading llvmpipe into the X server for AIGLX,
where the X server relies on the SIGIO signal going to the main thread,
but once llvmpipe loads the SIGIO can end up in any of its threads.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/os/os_thread.h