Method: ActiveRecord::ConnectionAdapters::ConnectionPool::BiasableQueue::BiasedConditionVariable#wait
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb
#wait(timeout) ⇒ Object
167 168 169 170 171 172 173 174 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb', line 167 def wait(timeout) if Thread.current == @preferred_thread @num_waiting_on_real_cond += 1 @real_cond else @other_cond end.wait(timeout) end |