Class File
In: lib/fsdb/file-lock.rb
Parent: Object
TopLevel

Extensions to the File class for non-blocking file locking, and for recording a Format in the File object.

Methods
lock_exclusive    lock_shared   
Attributes
:format  [RW] 
Public Instance methods
lock_exclusive()

Get an exclusive (i.e., write) lock on the file. If the lock is not available, wait for it without blocking other ruby threads.

lock_shared()

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