From: Eric Wong <normalperson@yhbt.net>
To: sleepy-penguin@bogomips.org
Cc: Eric Wong <normalperson@yhbt.net>
Subject: [PATCH] note the epoll/io.rb file is only for Ruby 1.8
Date: Mon, 7 Dec 2015 04:15:51 +0000 [thread overview]
Message-ID: <20151207041551.6393-1-normalperson@yhbt.net> (raw)
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)
--
EW
reply other threads:[~2015-12-07 4:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/sleepy_penguin/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151207041551.6393-1-normalperson@yhbt.net \
--to=normalperson@yhbt.net \
--cc=sleepy-penguin@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/sleepy_penguin.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).