lib/master_lock.rb
# Starts the background thread to manage and extend currently held locks.
# The thread remains alive for the lifetime of the process. This must be
# called before any locks may be acquired.
Starts the background thread to manage and extend currently held locks.
The thread remains alive for the lifetime of the process. This must be
called before any locks may be acquired.
Starts the background thread to manage and extend currently held locks . The thread remains alive for the lifetime of the process . This must be called before any locks may be acquired .
def start
      @registry = Registry.new
      Thread.new do
        loop do
          @registry.extend_locks
          sleep(config.sleep_time)
        end
      end
    end
def start @registry = Registry . new Thread . new do loop do @registry . extend_locks sleep ( config . sleep_time ) end end end
Starts the background thread to manage and extend currently held locks.
Starts the background thread to manage and extend currently held locks .