about summary refs log tree commit homepage
path: root/lib/yahns/queue_epoll.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-25 22:55:16 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-25 23:02:01 +0000
commit9bece9d13543743e2a0fdc6eab56c54098d4d0e6 (patch)
tree3aba695efd2d28b8b034520f3c95a16ff8bdd7f7 /lib/yahns/queue_epoll.rb
parentb73d91e6235f2c83cb768268a6661b88cdc96d4c (diff)
downloadyahns-9bece9d13543743e2a0fdc6eab56c54098d4d0e6.tar.gz
pipes and eventfd are always writable after creation, thus
there's no need to trigger it and watch for readability.
This saves us some code in the Linux case (and we currently
only support GNU/Linux).
Diffstat (limited to 'lib/yahns/queue_epoll.rb')
-rw-r--r--lib/yahns/queue_epoll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb
index fab1090..624e175 100644
--- a/lib/yahns/queue_epoll.rb
+++ b/lib/yahns/queue_epoll.rb
@@ -6,7 +6,7 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc:
   attr_accessor :fdmap # Yahns::Fdmap
 
   # public
-  QEV_QUIT = Epoll::IN
+  QEV_QUIT = Epoll::OUT # Level Trigger for QueueQuitter
   QEV_RD = Epoll::IN | Epoll::ONESHOT
   QEV_WR = Epoll::OUT | Epoll::ONESHOT
   QEV_RDWR = QEV_RD | QEV_WR