TOM::lock

DESCRIPTION

Allow you to create indenpendent locks for running processes between system processes

For example, when you are datamining data into database, statistic outputs would be inconsistent, also this processes is locked.

SYNOPSIS

my $lock=new TOM::lock("datamining") || die "this lock is in use";
... processing
$lock->close();

Get pid

my $pid=TOM::lock::get_pid("datamining");

Get pid file

my $pidfile=TOM::lock::get_pidfile("datamining");

DEPENDS

FUNCTIONS

get_pid()

Returns pid number of process which is using this lock

get_pidfile

Returns filename of this lock, where is stored actual PID


If published informations are not helpfull, something is missing or wrong, please report. Thanx for contribution.
This content is generated from file 'http://svn.cyclone3.org/trunk/frame/.core/.libs/TOM/lock.pm'

AddThis Social Bookmark Button RSS

User Comments