diff options
author | Eric Wong <e@80x24.org> | 2015-03-17 09:03:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-03-17 18:34:38 +0000 |
commit | c1396bf85d78504315482b28382b78d9e5e52c9a (patch) | |
tree | 16cf4e7674f2ebbe42014da465a777a5b8a30e08 /lib/yahns/queue_epoll.rb | |
parent | 7542c8365613d0104b8a3171418bb8c7f1a518cb (diff) | |
download | yahns-c1396bf85d78504315482b28382b78d9e5e52c9a.tar.gz |
We will support "un-hijacking", so the repeated ep_insert/ep_remove sequences in the kernel will get expensive and complicated for our user-land code, too.
Diffstat (limited to 'lib/yahns/queue_epoll.rb')
-rw-r--r-- | lib/yahns/queue_epoll.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb index 4a10ce0..da90a95 100644 --- a/lib/yahns/queue_epoll.rb +++ b/lib/yahns/queue_epoll.rb @@ -32,17 +32,6 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc: Thread.current[:yahns_fdmap] = @fdmap end - # use only before hijacking, once hijacked, io may be unusable to us - # It is not safe to call this unless it is an unarmed EPOLLONESHOT - # object. - def queue_del(io) - # order does not really matter here, however Epoll::CTL_DEL - # will free up ~200 bytes of unswappable kernel memory, - # so we call it first - epoll_ctl(Epoll::CTL_DEL, io, 0) - @fdmap.forget(io) - end - # returns an array of infinitely running threads def worker_thread(logger, max_events) Thread.new do |