ddLockPath
ddLockPath(t_filePath) =>b_lockId
Description
Creates a handle that allows you to lock the file and returns a lock ID for the file. Once you call ddLockFree, all references to that lock ID become invalid.
Arguments
|
The path to the file. The path must be a file (only files need to have locks). |
Value Returned
|
The lock ID of the specified file. If the path has a lock on it, any subsequent requests to lock that path get the same lock ID. |
Examples
ddLockPath( "/tmp/myFile" ) => dd:2542360
ddLockPath( ddGetObjWritePath( myViewFile ) ) => dd:2542360
Return to top