diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-22 14:34:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-22 16:58:58 +0000 |
commit | 64fc1bb9c87e95ff484ecd11f391b1c0d556d584 (patch) | |
tree | 588dd8dd1a8ab862ea7e22c596d25d2bdf835490 /src/sna/sna.h | |
parent | 900499bff962a63e1d9b5f808d1deb65d55754a2 (diff) |
sna: Allow SIGBUS/SEGV to kill the thread
To handle sigtrapping of the threads, we allow the threads to handle
their async signals and upon hitting the trap, we kill the thread. All
the rest of the threads are reaped by the main xserver thread
afterwards.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 329853dd..46516322 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -1015,7 +1015,8 @@ void sna_acpi_fini(struct sna *sna); void sna_threads_init(void); int sna_use_threads (int width, int height, int threshold); -void sna_threads_run(void (*func)(void *arg), void *arg); +void sna_threads_run(int id, void (*func)(void *arg), void *arg); +void sna_threads_trap(int sig); void sna_threads_wait(void); void sna_threads_kill(void); |