diff options
author | Eric Wong <e@80x24.org> | 2015-06-05 09:16:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-06-05 17:18:24 +0000 |
commit | d32e639902e3df217229017a3374b5b751ede6e3 (patch) | |
tree | 86101e47c09de6c6f802df4f6f8cbb87e2d40b6f | |
parent | f1675cca9eedde62d1bcd3db6deca0752c2fecf2 (diff) | |
download | yahns-d32e639902e3df217229017a3374b5b751ede6e3.tar.gz |
We can use symbols in the SleepyPenguin APIs to trade speed for space in uncommon code paths.
-rw-r--r-- | lib/yahns/queue_epoll.rb | 2 | ||||
-rw-r--r-- | lib/yahns/sigevent_efd.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb index 2875920..1511917 100644 --- a/lib/yahns/queue_epoll.rb +++ b/lib/yahns/queue_epoll.rb @@ -15,7 +15,7 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc: QEV_WR = Epoll::OUT | Epoll::ONESHOT def self.new - super(SleepyPenguin::Epoll::CLOEXEC) + super(Epoll::CLOEXEC) end # for HTTP and HTTPS servers, we rely on the io writing to us, first diff --git a/lib/yahns/sigevent_efd.rb b/lib/yahns/sigevent_efd.rb index c65e13f..2c04b36 100644 --- a/lib/yahns/sigevent_efd.rb +++ b/lib/yahns/sigevent_efd.rb @@ -4,7 +4,7 @@ class Yahns::Sigevent < SleepyPenguin::EventFD # :nodoc: include Kgio::DefaultWaiters def self.new - super(0, SleepyPenguin::EventFD::CLOEXEC) + super(0, :CLOEXEC) end def sev_signal |