Sha256: 49429db0df8bb38516e5cd59fb8a32b173b69aea66aa4d3be05b1e50d745845f

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
resurrected_god-1.1.1 lib/god/event_handlers/kqueue_handler.rb
resurrected_god-1.1.0 lib/god/event_handlers/kqueue_handler.rb