From eaca4a27b2ff4c6f163ecdfdcd528e23f72f735e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Dec 2015 04:13:56 +0000 Subject: note the epoll/io.rb file is only for Ruby 1.8 I was reading the code after a while and wonder why it was still doing archaic things like Time.now... I'm not sure how much longer it's worth supporting 1.8. Maybe the next release can remove it. --- lib/sleepy_penguin/epoll/io.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sleepy_penguin/epoll/io.rb b/lib/sleepy_penguin/epoll/io.rb index d5540c2..055f574 100644 --- a/lib/sleepy_penguin/epoll/io.rb +++ b/lib/sleepy_penguin/epoll/io.rb @@ -1,5 +1,8 @@ class SleepyPenguin::Epoll::IO # :stopdoc: + + # This is only for Ruby 1.8 using green threads + alias __epoll_wait epoll_wait undef_method :epoll_wait def epoll_wait(maxevents = 64, timeout = nil) -- cgit v1.2.3-24-ge0c7