File::LockDir is a Perl basic filename-level lock utility.. #Filename-level lock #Lock utility #Perl module #File::LockDir #Filename-level #Lock
File::LockDir is a Perl basic filename-level lock utility.
use File::LockDir;
new
Initializes the class. Returns the singleton object.
nflock($file, $nap_till, $locker, $lockhost)
Locks the supplied filename. Only $file is required.
$file is the file to be locked; $nap_till is the total amount of time to wait before giving up; $locker is a name identifying the locker; $lockhost is the host requesting the lock.
nunflock($file)
Unlocks the supplied file.
nlock_state($file)
Checks the state of the lock for the supplied file. Returns a list: the first item is true if the file is unlocked, and false if not; the second item is undef if the file is unlocked, and the identity (name and host) is it is locked.
%s already locked
Seen when you've already locked the requested pathname. Informational only.
No pathname to be locked
You didn't supply a pathname to be locked to nflock. Fatal.
can't write to directory of %s
The directory where the file resides can't be written, so the lockfile can't be created.
can't get %s: %s
The named lock can't be gotten: the reason is supplied. Failure occurs after ten tries to get the lock.
%s %s[%s]: lock on %s held by %s
The lock on the specified file is help by the noted locker. Informatory message, printed only when debugging is on.
close failed for %s: %s
The file containing the lock information couldn't be closed for the reason shown.
releasing lock on %s
Debug message; notes that the lock on the specified file was successfully released.
System requirements
- Perl
File::LockDir 0.01
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- File-LockDir-0.01.tar.gz
- main category:
- Programming
- developer:
- visit homepage
ShareX 16.0.1
Bitdefender Antivirus Free 27.0.35.146
Zoom Client 6.0.0.37205
paint.net 5.0.13 (5.13.8830.42291)
IrfanView 4.67
Windows Sandbox Launcher 1.0.0
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
7-Zip 23.01 / 24.04 Beta
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
calibre 7.8.0
- 7-Zip
- 4k Video Downloader
- calibre
- ShareX
- Bitdefender Antivirus Free
- Zoom Client
- paint.net
- IrfanView
- Windows Sandbox Launcher
- Microsoft Teams