diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2017-03-27 14:08:28 +0300 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2017-03-27 14:33:52 +0300 |
commit | eb6ed462f256dd983108f1c86ddd5d3a6190624b (patch) | |
tree | 93cc3575cbb299504efc5af2944160023abf9420 /lib/igt_dummyload.h | |
parent | a27c7437e8a5c17a1bcfd22d0184c1c4185be96b (diff) |
lib/dummyload: Handle timeout in a new thread instead of signal handler
Currently, the main thread needs to wakeup to run the signal handler
that ends a spin batch. When testing whether a function call succesfully
waits for a batch to complete, this behavior is undesired. It actually
invalidates the test.
Fix this by spawning a new thread to handle the timeout.
v2: Get rid of mutexes. (Chris)
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.h')
-rw-r--r-- | lib/igt_dummyload.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h index 2adfadf2..41125e3f 100644 --- a/lib/igt_dummyload.h +++ b/lib/igt_dummyload.h @@ -33,7 +33,6 @@ typedef struct igt_spin { unsigned int handle; timer_t timer; - int signo; struct igt_list link; uint32_t *batch; } igt_spin_t; |