preliminary kqueue support
commitf7cb886cfde08a5217d0d4370285e2b5cabd481f
authorEric Wong <normalperson@yhbt.net>
Thu, 25 Apr 2013 04:03:48 +0000 (25 04:03 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 29 Apr 2013 21:01:01 +0000 (29 21:01 +0000)
tree3265220f82d8ea2fe3c8e137886c3e604ec99d14
parentb57b0fa2bda6c755d366df0dc0579e244fb167a8
preliminary kqueue support

This is still a work-in-progress, but allows us to support
using a kqueue descriptor from multiple threads.
(e.g. one thread waiting with kevent, while another thread
 modifies the watch list via kevent)
ext/sleepy_penguin/epoll.c
ext/sleepy_penguin/extconf.rb
ext/sleepy_penguin/init.c
ext/sleepy_penguin/kqueue.c [new file with mode: 0644]
ext/sleepy_penguin/sleepy_penguin.h
ext/sleepy_penguin/value2timespec.h
lib/sleepy_penguin/kevent.rb [new file with mode: 0644]
lib/sleepy_penguin/kqueue.rb [new file with mode: 0644]
lib/sleepy_penguin/kqueue/io.rb [new file with mode: 0644]
test/test_kqueue.rb [new file with mode: 0644]
test/test_kqueue_io.rb [new file with mode: 0644]