[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.lock.php (summary)

(no description)

File Size: 115 lines (4 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Lock:: (4 methods):
  acquire()
  release()
  _getProcessFilename()
  getProcessID()


Class: Lock  - X-Ref

acquire($name)   X-Ref
Creates a lock file for the given name.

param: string $name The name of this lock file
return: boolean

release($name)   X-Ref
Removes the process file to allow other instances of this
script to run.

param: string $name The name of this lock file
return: void

_getProcessFilename($name)   X-Ref
Returns the full path to the file that keeps the process
ID of the running script.

param: string $name The name of this lock file
return: string The full path of the process file

getProcessID($name)   X-Ref
Returns the process ID of the script, if any.

param: string $name The name of this lock file
return: integer The process ID of the script



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7