OSDN Git Service

modetest: Use threads for cursors instead of SIGALRM
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 22 Nov 2014 05:37:12 +0000 (21:37 -0800)
committerRob Clark <robclark@freedesktop.org>
Sat, 22 Nov 2014 16:45:02 +0000 (11:45 -0500)
commit29bb4c6911b21c026c3863799dcbeaa29981bf7e
treedf26a871f4263900c1fd5484683a1feaa02390fb
parentec65f8d71eb3eb065c7cadf4153138435ac3b388
modetest: Use threads for cursors instead of SIGALRM

This fixes an issue when trying to use -v and -C together. When trying
to read the page flip event, we are interrupted by the SIGALRM that
comes in, and so we think we timed out when we simply got EINTR. While
we could just loop checking for EINTR, SIGALRM is just bad idea to
begin with, so just rewrite it to use a thread.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
tests/modetest/Makefile.am
tests/modetest/cursor.c