diff options
Diffstat (limited to 'lib/yahns/queue_epoll.rb')
-rw-r--r-- | lib/yahns/queue_epoll.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb index da90a95..10ff607 100644 --- a/lib/yahns/queue_epoll.rb +++ b/lib/yahns/queue_epoll.rb @@ -27,9 +27,14 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc: epoll_ctl(Epoll::CTL_ADD, io, flags) end + def queue_mod(io, flags) + epoll_ctl(Epoll::CTL_MOD, io, flags) + end + def thr_init Thread.current[:yahns_rbuf] = "" Thread.current[:yahns_fdmap] = @fdmap + Thread.current[:yahns_queue] = self end # returns an array of infinitely running threads |