diff options
author | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-01-04 16:50:35 +0100 |
---|---|---|
committer | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-01-04 16:50:35 +0100 |
commit | f7343169315b1aa9e5d68acfc2c2d9247cfc9a3b (patch) | |
tree | 14ec91dd426f98b2bb1030f0e555f799307b67a4 /inputdev.h | |
parent | 32ce17d193f4e529bc393dcedc69e77e389d5ea1 (diff) | |
download | vdr-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ private: cPlugin &plugin_; int fd_udev_; int fd_epoll_; + int fd_alive_[2]; cList<cInputDevice> devices_; cList<cInputDevice> gc_devices_; |