Sha256: c697cd2768044445b411a98f1e314d77b5821e828ab5f8b4d23c90767fda1094

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true
module Pitchfork
  # fallback for non-Linux and Linux <4.5 systems w/o EPOLLEXCLUSIVE
  class SelectWaiter # :nodoc:
    def get_readers(ready, readers, timeout_msec) # :nodoc:
      timeout_sec = timeout_msec / 1_000.0
      ret = IO.select(readers, nil, nil, timeout_sec) and ready.replace(ret[0])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pitchfork-0.16.0 lib/pitchfork/select_waiter.rb
pitchfork-0.15.0 lib/pitchfork/select_waiter.rb
pitchfork-0.14.0 lib/pitchfork/select_waiter.rb
pitchfork-0.13.0 lib/pitchfork/select_waiter.rb