about summary refs log tree commit homepage
path: root/lib/yahns/queue_kqueue.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-03-17 09:03:30 +0000
committerEric Wong <e@80x24.org>2015-03-17 18:34:38 +0000
commitc1396bf85d78504315482b28382b78d9e5e52c9a (patch)
tree16cf4e7674f2ebbe42014da465a777a5b8a30e08 /lib/yahns/queue_kqueue.rb
parent7542c8365613d0104b8a3171418bb8c7f1a518cb (diff)
downloadyahns-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_kqueue.rb')
-rw-r--r--lib/yahns/queue_kqueue.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/yahns/queue_kqueue.rb b/lib/yahns/queue_kqueue.rb
index ce75793..4e5c133 100644
--- a/lib/yahns/queue_kqueue.rb
+++ b/lib/yahns/queue_kqueue.rb
@@ -41,12 +41,6 @@ class Yahns::Queue < SleepyPenguin::Kqueue::IO # :nodoc:
     Thread.current[:yahns_fdmap] = @fdmap
   end
 
-  def queue_del(io)
-    # do not bother with kevent EV_DELETE, it may be tricky to get right,
-    # we only did it in epoll since Eric knows the epoll internals well.
-    @fdmap.forget(io)
-  end
-
   # returns an array of infinitely running threads
   def worker_thread(logger, max_events)
     Thread.new do