| User's Guide: A Framework for Object Persistency for GNAT; Version 0.6.1; Document Revision $Revision: 1.17 $ | ||
|---|---|---|
| Prev | Chapter 33. Util.Lock_Table | Next |
function Seize(
This : in Object;
Id : in Natural ) return Lock_Handle_Type;
Invalid_Lock_Handle : exception;
Seize a resource which is identified by the given natural number. The function blocks till the given resource is available.
Postconditions:
C.1 - Returns a so called lock identifier which has to be used
to unlock the seized resource.
Notes:
procedure Release(
This : in out Object;
Lock : in out Lock_Handle_Type );
Make the resource identified by the lock identifier available for other seizures.
P.1 - Lock identifier exisits.
C.1 - The resource is available for other seizures.
Notes: