Method: File#lock_shared

Defined in:
lib/fsdb/file-lock.rb,
lib/fsdb/file-lock.rb,
lib/fsdb/file-lock.rb

#lock_shared(lock_type) ⇒ Object

Get a shared (i.e., read) lock on the file. If the lock is not available, wait for it without blocking other ruby threads.



20
21
# File 'lib/fsdb/file-lock.rb', line 20

def lock_shared lock_type   # :nodoc
end