Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.990.048 Times

LockFile::Simple 0.2.5

  Date Added: April 15, 2010  |  Visits: 728

LockFile::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (134 downloads)

LockFile::Simple is a simple file locking scheme. SYNOPSIS use LockFile::Simple qw(lock trylock unlock); # Simple locking using default settings lock("/some/file") || die "cant lock /some/filen"; warn "already lockedn" unless trylock("/some/file"); unlock("/some/file"); # Build customized locking manager object $lockmgr = LockFile::Simple->make(-format => %f.lck, -max => 20, -delay => 1, -nfs => 1); $lockmgr->lock("/some/file") || die "cant lock /some/filen"; $lockmgr->trylock("/some/file"); $lockmgr->unlock("/some/file"); $lockmgr->configure(-nfs => 0); # Using lock handles my $lock = $lockmgr->lock("/some/file"); $lock->release; This simple locking scheme is not based on any file locking system calls such as flock() or lockf() but rather relies on basic file system primitives and properties, such as the atomicity of the write() system call. It is not meant to be exempt from all race conditions, especially over NFS. The algorithm used is described below in the ALGORITHM section. It is possible to customize the locking operations to attempt locking once every 5 seconds for 30 times, or delete stale locks (files that are deemed too ancient) before attempting the locking..

Requirements: No special requirements
Platforms: Linux
Keyword: File File Locking Libraries Lock Lockfile Lockfilesimple Locking Programming Simple
Users rating: 0/10

License: Freeware Size: 12.29 KB
LOCKFILE::SIMPLE RELATED
Libraries  -  Audio::File 0.10
Audio::File is a audio file abstraction library. SYNOPSIS use Audio::File; my $file = Audio::File->new( "foo.bar" ); print "The ". $file->type() ."-file ". $file->name ." is ". int $file->length() ." seconds long.n"; print "Its...
74.75 KB  
Libraries  -  Daizu::File 0.3
Daizu::File is a Perl class representing files in working copies. Each object of this class represents a particular file in a Daizu CMS working copy (a record in the wc_file table). METHODS Note that all the functions which return the value...
419.84 KB  
Libraries  -  libConfuse 2.5
libConfuse is a library for parsing configuration files. It was called libcfg before, but was changed to not confuse with other similar libraries. It supports sections and (lists of) values (strings, integers, floats, booleans or other...
501.76 KB  
Libraries  -  XML::API::WIX2 0.02
XML::API::WIX2 is a WIX source file generation through an object API. SYNOPSIS As a simple example the following perl code: use XML::API; my $m_wxs = new XML::API(doctype => WIX2, encoding => UTF-8); $m_wxs->Product_open({ Id =>...
10.24 KB  
Clipboard Utilities  -  MetaClip 2 Pre-Alpha
MetaClip is a handy and reliable clipboard content archiving tool designed to store, organize and restore Windows clipboard contents, including complex formatted textual content, images and other data formats, in portable file-system based...
 
Database Tools  -  VINDOZO: MYSQL-COPY 1.1
Copy all tables MYSQL Database FROM: MYSQL-Server, HTTP-Path file or Upload file dump TO: MYSQL-Server, One file, File-parts dump. Advanced statistics.Improved stability. Multiuser. Report to file. No limit database size. Convert Charset. Only one...
10 KB  
Programming  -  svn to ChangeLog 0.4.0
generate a GNU compliant ChangeLog file from the svn log messages using a very simple perl script. No big dependencies, no big libraries. Plain and simple.
17.35 KB  
Programming  -  Pasmo 0.6.0.20070113.0
Pasmo project is a Z80 cross assembler, written in standard C++ that compiles easily in multiple platforms. Actually can generate object code in the following formats: raw binary, Intel HEX, PRL for CP/M Plus RSX, Plus3Dos (Spectrum +3 disk), TAP,...
122.88 KB  
Backup Utilities  -  Binary Clock 2.5
Binary Clock is a gadget that will add to your desktop or Sidebar a binary clock. This is a clock displays the current time in binary notation. Save settings to file. (File will be created - Path: %APPDATA% Filename: gadgetname_Settings.ini)....
319 KB  
Development Tools  -  XLS2STRUCT 1.0
[S,E] = XLS2STRUCT(FILE) reads the Excel-file FILE and converts the columns into separate fields in the structure S. The first line of the file must contain unique headers for all of the columns, the rest of the file is data. Column names can...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB