Class: RedisQueuedLocks::Utilities::Lock Private

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_queued_locks/utilities/lock.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.9.0

Instance Method Summary collapse

Constructor Details

#initialize ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.9.0

Version:

  • 1.13.0



11
12
13
# File 'lib/redis_queued_locks/utilities/lock.rb', line 11

def initialize
  @lock = ::Monitor.new
end

Instance Method Details

#synchronize { ... } ⇒ Any

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Yields:

Yield Returns:

  • (Any)

Returns:

  • (Any)

Since:

  • 1.9.0

Version:

  • 1.13.0



22
23
24
# File 'lib/redis_queued_locks/utilities/lock.rb', line 22

def synchronize(&block)
  @lock.synchronize(&block)
end