GDSX Manual

Service Routines
Extended General Device Support (GDSX) Manual134303
8-83
VSEM
record-count input
INT(32):value
specifies the maximum number of records that can be generated for the trace file
before the entries wrap. The default is 4,096D and the maximum is 32,000D.
Example
See the examples included with the description of the ADD^TRACE^DATA procedure
in this section.
VSEM
This procedure releases a noncheckpoint semaphore so that other tasks can use the
associated resource. The checkpoint semaphore is released with the GIVE^CPSEM
procedure.
Any error-handling or special handling after accessing a resource should be done before
calling VSEM. When a task calls VSEM, TSCODE verifies that the caller owns the
semaphore, then checks the semaphore’s wait list. If this list is not empty, the first task
on the list is given the semaphore and an E^RESOURCE event is caused for the task.
semaphore input
is a pointer to the semaphore to be released.
WAITED^IO[X]
The WAITED^IO and WAITED^IOX procedures perform a waited I/O, even if there are
other I/O operations outstanding.
CALL VSEM ( semaphore ); !
i
INT:ref (Semaphore in global memory)
INT(32) .EXT:ref (Pointer to semaphore in extended memory)
Note. This operation is waited only from the perspective of the calling taskit is not a waited
I/O from the perspective of the GDSX process. In other words, calling this procedure causes
the calling task to be suspended, but other tasks are not suspended as a result of such a call.