Sha256: 753559bbc9b61b2daa195e4eaed11c265405d9c4c82356cdd9a75de7ea6f567f

Contents?: true

Size: 344 Bytes

Versions: 69

Compression:

Stored size: 344 Bytes

Contents

require 'celluloid/fiber'

# Monkeypatch Thread to allow lazy access to its Celluloid::Mailbox
class Thread
  # Retrieve the mailbox for the current thread or lazily initialize it
  def self.mailbox
    current[:mailbox] ||= Celluloid::Mailbox.new
  end
end

class Fiber
  # Celluloid::Task associated with this Fiber
  attr_accessor :task
end

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
engineyard-serverside-2.0.4 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.5 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.3 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.2 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.1 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.rc1 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.pre5 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.pre4 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.pre3 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.pre2 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-2.0.0.pre1 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.7.0.pre2 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre6 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre5 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre4 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre3 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre2 lib/vendor/celluloid/lib/celluloid/core_ext.rb
engineyard-serverside-1.6.4.pre lib/vendor/celluloid/lib/celluloid/core_ext.rb