xepoll_thread_*/client: EPOLLONESHOT implies EPOLLET
authorEric Wong <normalperson@yhbt.net>
Tue, 26 Feb 2013 20:07:30 +0000 (26 20:07 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 26 Feb 2013 20:07:30 +0000 (26 20:07 +0000)
No need to specify both flags for epoll (confirmed by reading
fs/eventpoll.c in the Linux kernel).

lib/rainbows/xepoll_thread_pool/client.rb
lib/rainbows/xepoll_thread_spawn/client.rb

index 61b0b68..001e69d 100644 (file)
@@ -37,7 +37,7 @@ module Rainbows::XEpollThreadPool::Client
 
   ep = SleepyPenguin::Epoll
   EP = ep.new
-  IN = ep::IN | ep::ET | ep::ONESHOT
+  IN = ep::IN | ep::ONESHOT
   KATO = {}
   KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity)
   LOCK = Mutex.new
index 6c07b92..a3277cf 100644 (file)
@@ -26,7 +26,7 @@ module Rainbows::XEpollThreadSpawn::Client
 
   ep = SleepyPenguin::Epoll
   EP = ep.new
-  IN = ep::IN | ep::ET | ep::ONESHOT
+  IN = ep::IN | ep::ONESHOT
   KATO = {}
   KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity)
   LOCK = Mutex.new