lib/theatre/invocation.rb in adhearsion-0.8.1 vs lib/theatre/invocation.rb in adhearsion-0.8.2
- old
+ new
@@ -30,10 +30,10 @@
# Used just to protect access to the @returned_value instance variable
@returned_value_lock = Monitor.new
# Used when wait() is called to notify all waiting threads by using a ConditionVariable
- @returned_value_blocker = Monitor::ConditionVariable.new @returned_value_lock
+ @returned_value_blocker = @returned_value_lock.new_cond#Monitor::ConditionVariable.new @returned_value_lock
end
def queued
with_state_lock do
raise InvalidStateError unless @current_state == :new