GDSX (Extended General Device Support) Manual

Service Routines
Extended General Device Support (GDSX) Manual529931-001
8-57
PUTLOCALPOOL
Example
INT .EXT PTR;
.
.
@PTR := GETEXTPOOL(N, WDS);
.
.
CALL PUTEXTPOOL(N, @PTR);
.
PUTLOCALPOOL
This procedure deallocates space obtained from any of the two local memory pools by
a call to GETLOCALPOOL.
For more information, see Memory Pools on page 2-24.
pool input
INT:value
indicates which local pool to deallocate space for. The value of pool is one of the
following:
buffer input
INT:ref
is a pointer to the area to be deallocated.
Example
INT .buf;
@buf := GETLOCALPOOL (0, 100);
.
CALL PUTLOCALPOOL (0, buf);
Q^CP[X]
Once a task calls GET^CPSEM to obtain the checkpoint semaphore, the task can call
Q^CP[X] to copy user-defined data to the TSCODE checkpoint buffer in preparation for
a call to DO^CP or ^CHECKPOINT, either of which copies the buffer to the backup
process.
CALL PUTLOCALPOOL ( pool !
i
,buffer ); !
i
0 Local buffer pool
1 Local message pool