The code in which i am using this count_waiters is :
def self.signal_waiting_test(test_name, proxy_call=false)
signal_data = SIP::Locator[:Tlocks][test_name] if
SIP::Locator[:Tlocks]
unless signal_data
return false
end
signal_data.lock.synchronize do
signal_data.lock << "signal"
if signal_data.cond.count_waiters > 0
signal_data.cond.signal
else
SipLogger[''siplog::sip_testcompletionsignalinghelper''].debug
"Queueing the signal"
end
end
end
But "count_waiters" is not implemented as such in Ruby 1.9.3
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.