Parent

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::ConnectionPool

Public Instance Methods

_fibered_mutex() click to toggle source
# File lib/em-synchrony/activerecord.rb, line 16
def _fibered_mutex
  @fibered_mutex ||= EM::Synchrony::Thread::Mutex.new
end
connection() click to toggle source
# File lib/em-synchrony/activerecord.rb, line 10
def connection
  _fibered_mutex.synchronize do
    @reserved_connections[current_connection_id] ||= checkout
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.