Class | File |
In: |
lib/logging/utils.rb
|
Parent: | Object |
Returns true if another process holds an exclusive lock on the file. Returns false if this is not the case.
If a block of code is passed to this method, it will be run iff this process can obtain an exclusive lock on the file. The block will be run while this lock is held, and the exclusive lock will be released when the method returns.
The exclusive lock is requested in a non-blocking mode. This method will return immediately (and the block will not be executed) if an exclusive lock cannot be obtained.