Docs » Autodocs » dos.library » DupLock
DupLock -- Duplicate a lock
lock = DupLock( lock ) D0 D1 BPTR DupLock(BPTR)
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. A zero return indicates failure.
lock - BCPL pointer to a lock
newLock - BCPL pointer to a lock
Lock(), UnLock(), DupLockFromFH(), ParentOfFH()
|