Sha256: 6ea6a4e1e3c40a1cfeadd53f0d635dceb1d8f616c146e5c246f3d5f4e9901c62
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
class TestEventedMailbox < Celluloid::Mailbox::Evented class Reactor def initialize @condition = ConditionVariable.new @mutex = Mutex.new end def wakeup @mutex.synchronize do @condition.signal end end def run_once(timeout) @mutex.synchronize do @condition.wait(@mutex, timeout) end end def shutdown; end end def initialize super(Reactor) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
celluloid-0.18.0 | spec/support/examples/evented_mailbox_class.rb |
celluloid-0.18.0.pre2 | spec/support/examples/evented_mailbox_class.rb |