Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

SameLock

Returns whether two locks are on the same object

Declaration

Source position: amigados.pas line 2269

function SameLock(

  Lock1: Pointer;

  Lock2: Pointer

):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