Sha256: 8b91c0e22aaa94adc0d40409b52067711a28b1ee60e92f352003270ed111b2ae

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

# -*- encoding: binary -*-
module SleepyPenguin

  # the version of sleepy_penguin, currently 3.1.0
  SLEEPY_PENGUIN_VERSION = '3.1.0'
end
require 'sleepy_penguin_ext'
require 'sleepy_penguin/epoll'

# We need to serialize Inotify#take for Rubinius since that has no GVL
# to protect the internal array
if defined?(SleepyPenguin::Inotify) &&
   defined?(Rubinius) && Rubinius.respond_to?(:synchronize)
  class SleepyPenguin::Inotify
    # :stopdoc:
    alias __take take
    undef_method :take
    def take(*args)
      Rubinius.synchronize(@inotify_tmp) { __take(*args) }
    end
    # :startdoc
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sleepy_penguin-3.1.0.26.g7181 lib/sleepy_penguin.rb