Sha256: 5557e70536c66224d6f29365ad02c42a01692ee0bbd1a8af1a3d8af275de3ef2

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

class Epoll
  attr_accessor :evlist

  include Epoll::Constants

  class << self
    alias create open
  end

  def size
    @evlist.size
  end
  alias length size

  def add(io, events)
    ctl CTL_ADD, io, events
  end

  def mod(io, events)
    ctl CTL_MOD, io, events
  end

  def del(io)
    ctl CTL_DEL, io
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epoll-0.3.0 lib/epoll/ext.rb