diff options
author | Eric Wong <normalperson@yhbt.net> | 2015-12-07 04:13:56 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2015-12-07 04:13:56 +0000 |
commit | eaca4a27b2ff4c6f163ecdfdcd528e23f72f735e (patch) | |
tree | b79635622b76b8fcfc52c71804ef52cace3ad6dd | |
parent | 49675b05f98a491953e5424fd8215773865ccb89 (diff) | |
download | sleepy_penguin-eaca4a27b2ff4c6f163ecdfdcd528e23f72f735e.tar.gz |
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.
-rw-r--r-- | lib/sleepy_penguin/epoll/io.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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) |