Sha256: 9a29a9976ab85e6a54c6276318743c379a6b8b706229a9fae71d5ee5f57b9c46

Contents?: true

Size: 332 Bytes

Versions: 73

Compression:

Stored size: 332 Bytes

Contents

require 'kqueue_handler_ext'

module God
  class KQueueHandler
    EVENT_SYSTEM = "kqueue"
    
    def self.register_process(pid, events)
      monitor_process(pid, events_mask(events))
    end
  
    def self.events_mask(events)
      events.inject(0) do |mask, event|
        mask |= event_mask(event)
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 21 rubygems

Version Path
dguettler-god-0.7.13.2 lib/god/event_handlers/kqueue_handler.rb
dguettler-god-0.7.13.3 lib/god/event_handlers/kqueue_handler.rb
dosire-god-0.7.10 lib/god/event_handlers/kqueue_handler.rb
dosire-god-0.7.12 lib/god/event_handlers/kqueue_handler.rb
dosire-god-0.7.9 lib/god/event_handlers/kqueue_handler.rb
dunedain289-god-0.7.12.1 lib/god/event_handlers/kqueue_handler.rb
dustin-god-0.7.7.1 lib/god/event_handlers/kqueue_handler.rb
eric-god-0.7.10 lib/god/event_handlers/kqueue_handler.rb
eric-god-0.7.11 lib/god/event_handlers/kqueue_handler.rb
eric-god-0.7.12 lib/god/event_handlers/kqueue_handler.rb
eric-god-0.7.14 lib/god/event_handlers/kqueue_handler.rb
eric-god-0.7.7 lib/god/event_handlers/kqueue_handler.rb
fotonauts-god-0.7.10 lib/god/event_handlers/kqueue_handler.rb
fotonauts-god-0.7.12 lib/god/event_handlers/kqueue_handler.rb
gohanlonllc-god-0.7.9 lib/god/event_handlers/kqueue_handler.rb
gordoncww-god-0.7.11.1 lib/god/event_handlers/kqueue_handler.rb
jreynolds-god-0.7.13 lib/god/event_handlers/kqueue_handler.rb
jwilkins-god-0.7.9 lib/god/event_handlers/kqueue_handler.rb
mathieuravaux-god-0.7.11 lib/god/event_handlers/kqueue_handler.rb
mojombo-god-0.7.10 lib/god/event_handlers/kqueue_handler.rb