\app\common\libraryLock

文件阻塞锁 Class Lock

Summary

Methods
Properties
Constants
lockUp()
unLock()
$resource
No constants found
No protected methods found
No protected properties found
N/A
getFilePath()
deleteFile()
No private properties found
N/A

Properties

$resource

$resource : 

Type

Methods

lockUp()

lockUp(  $uniqueId) : boolean

加锁

Parameters

$uniqueId

Returns

boolean

unLock()

unLock(  $uniqueId) : boolean

解锁

Parameters

$uniqueId

Returns

boolean

getFilePath()

getFilePath(  $uniqueId) : string

获取锁文件的路径

Parameters

$uniqueId

Returns

string

deleteFile()

deleteFile(  $uniqueId) : boolean

删除锁文件

Parameters

$uniqueId

Returns

boolean