Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Remove stale waker references #2

Merged
merged 1 commit into from Jan 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/celluloid/io/mailbox.rb
@@ -1,8 +1,8 @@
module Celluloid
module IO
# An alternative implementation of Celluloid::Mailbox using Wakers
# An alternative implementation of Celluloid::Mailbox using Reactor
class Mailbox < Celluloid::Mailbox
attr_reader :reactor, :waker
attr_reader :reactor

def initialize
@messages = []
Expand Down Expand Up @@ -66,4 +66,4 @@ def shutdown
end
end
end
end
end
3 changes: 1 addition & 2 deletions lib/celluloid/io/reactor.rb
Expand Up @@ -41,8 +41,7 @@ def wakeup
@selector.wakeup
end

# Run the reactor, waiting for events, and calling the given block if
# the reactor is awoken by the waker
# Run the reactor, waiting for events or wakeup signal
def run_once(timeout = nil)
@selector.select_each(timeout) do |monitor|
monitor.value.resume
Expand Down