summaryrefslogtreecommitdiff
path: root/inputdev.h
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-04 16:50:35 +0100
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-04 16:50:35 +0100
commitf7343169315b1aa9e5d68acfc2c2d9247cfc9a3b (patch)
tree14ec91dd426f98b2bb1030f0e555f799307b67a4 /inputdev.h
parent32ce17d193f4e529bc393dcedc69e77e389d5ea1 (diff)
downloadvdr-plugin-inputdev-f7343169315b1aa9e5d68acfc2c2d9247cfc9a3b.tar.gz
vdr-plugin-inputdev-f7343169315b1aa9e5d68acfc2c2d9247cfc9a3b.tar.bz2
fixed shutdown of plugin
epoll_wait() does not return when the epoll-fd is closed by another thread. Use a helper pipe which is added to the epoll. Closing one end allows to terminate the thread cleanly
Diffstat (limited to 'inputdev.h')
-rw-r--r--inputdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/inputdev.h b/inputdev.h
index 7038442..a11ab6d 100644
--- a/inputdev.h
+++ b/inputdev.h
@@ -29,6 +29,7 @@ private:
cPlugin &plugin_;
int fd_udev_;
int fd_epoll_;
+ int fd_alive_[2];
cList<cInputDevice> devices_;
cList<cInputDevice> gc_devices_;