diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2010-08-06 14:32:50 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-06 14:33:32 +0200 |
| commit | 3b6bc1a7dc5871aef2c47426f87bb409a622de29 (patch) | |
| tree | 1cba64c0399dbb0cfb6d3820f09cf047a6f2bef2 /test/grail-touch.c | |
| parent | 40d6c7304cf431f13bfe81600656b268c881a4a2 (diff) | |
Remove thread code
The primary usecase of grail involves using it together with the
xserver, which is not threaded. Revert the touch-dev code back to
the state prior to adding the threaded processing. Deferred event
handling can be implemented by other means when needed.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
Diffstat (limited to 'test/grail-touch.c')
| -rw-r--r-- | test/grail-touch.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/grail-touch.c b/test/grail-touch.c index 8893c0d..bed31c3 100644 --- a/test/grail-touch.c +++ b/test/grail-touch.c | |||
| @@ -54,10 +54,8 @@ static void loop_device(struct touch_dev *dev, int fd) | |||
| 54 | struct touch_engine engine; | 54 | struct touch_engine engine; |
| 55 | touch_engine_init(&engine, tp_event, tp_sync, 0); | 55 | touch_engine_init(&engine, tp_event, tp_sync, 0); |
| 56 | touch_engine_attach(&engine, dev); | 56 | touch_engine_attach(&engine, dev); |
| 57 | while (!touch_dev_idle(dev, fd, 5000)) { | 57 | while (!touch_dev_idle(dev, fd, 5000)) |
| 58 | touch_dev_fetch(dev, fd); | 58 | touch_dev_pull(dev, fd); |
| 59 | touch_dev_process(dev); | ||
| 60 | } | ||
| 61 | touch_engine_detach(&engine, dev); | 59 | touch_engine_detach(&engine, dev); |
| 62 | } | 60 | } |
| 63 | 61 | ||
