Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

SameLock

Returns whether two locks are on the same object

Declaration

Source position: amigados.pas line 1919

function SameLock(

  lock1: LongInt;

  lock2: LongInt

):LongInt;

Arguments

lock1

  

1st lock for comparison

lock2

  

2nd lock for comparison

Function result

LOCK_SAME, LOCK_SAME_HANDLER or LOCK_DIFFERENT

Description

Compares two locks. Returns LOCK_SAME if they are on the same object, LOCK_SAME_HANDLER if on different objects on the same volume, and LOCK_DIFFERENT if they are on different volumes. Always compare for equality or non-equality with the results, in case new return values are added.


Documentation generated on: 2021-07-30