From 552c4ca305092911ca7613de4b1ba310e5481775 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 26 Feb 2013 20:07:30 +0000 Subject: xepoll_thread_*/client: EPOLLONESHOT implies EPOLLET 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 | 2 +- lib/rainbows/xepoll_thread_spawn/client.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rainbows/xepoll_thread_pool/client.rb b/lib/rainbows/xepoll_thread_pool/client.rb index 61b0b68..001e69d 100644 --- a/lib/rainbows/xepoll_thread_pool/client.rb +++ b/lib/rainbows/xepoll_thread_pool/client.rb @@ -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 diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 6c07b92..a3277cf 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -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 -- cgit v1.2.3-24-ge0c7