[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

DupLock

Duplicate a lock

Declaration

Source position: amigados.pas line 2260

function DupLock(

  Lock: BPTR

):BPTR;

Arguments

Lock

  

Lock to copy

Function result

Result 0 indicates an error.

Description

DupLock() is passed a shared filing system lock. This is the only way to obtain a duplicate of a lock... simply copying is not allowed.

Another lock to the same object is then returned. It is not possible to create a copy of a exclusive lock.

See also

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file

DupLockFromFH

  

Gets a lock on an open file

ParentOfFH

  

Returns a lock on the parent directory of a file


Documentation generated on: 2017-01-10