Docs » Autodocs » dos.library » SameDevice
SameDevice -- Are two locks are on partitions of the device? (V37)
same = SameDevice(lock1, lock2) D0 D1 D2 BOOL SameDevice( BPTR, BPTR )
SameDevice() returns whether two locks refer to partitions that are on the same physical device (if it can figure it out). This may be useful in writing copy routines to take advantage of asynchronous multi-device copies. Entry existed in V36 and always returned 0.
lock1,lock2 - locks
same - whether they're on the same device as far as Dos can determine.
|