GDSX Manual
Service Routines
Extended General Device Support (GDSX) Manual–134303
8-55
PUTEXTPOOL
If the semaphore was found to belong to another task, the following events take
place:
•
The caller’s TCB is linked onto the semaphore’s wait list.
•
The caller’s tcb.statex.wait^cause is set to 1.
•
The task waits on DISP^RESOURCE (see WAIT^EVENT).
semaphore input
is a pointer to the semaphore to be acquired.
time input
INT(32):value
specifies the maximum number of ticks (10 ms units) to wait to obtain the
semaphore. If this parameter is omitted, the task waits indefinitely.
Consideration
A task calling this procedure may be suspended.
PUTEXTPOOL
This procedure deallocates space obtained from any of the four extended memory pools
by a call to GETEXTPOOL.
For more information, see “Memory Pools” on page 2-24.
pool input
INT:value
indicates which pool to deallocate space for. The value of pool is one of the
following:
INT:ref (Semaphore in global memory)
INT(32) .EXT:ref (Pointer to semaphore in extended memory)
CALL PUTEXTPOOL ( pool !
i
,address ); !
i
1 Shared extended pool
2 Private extended pool
10 Extended buffer pool
11 Extended message pool