24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ENQ. [CALLI 151]<br />

2 .ENQSI<br />

Requests ownership of a resource and, if the<br />

resource is not immediately available, causes a<br />

software interrupt when the resource becomes<br />

available. You can use this function when the<br />

Programmable Software Interrupt (PSI) system is<br />

enabled, to prevent your job from blocking while<br />

waiting for the requests to be granted.<br />

If all the requests in the call can be granted<br />

immediately, this function is equivalent to<br />

function code 0 (.ENQBL). If any of the requests<br />

are not available, the call takes the error return<br />

with error code 1 (ENQRU%) in the ac. In this<br />

case, your job can continue processing until it<br />

receives a .PCQUE software interrupt. The<br />

interrupt control block will contain the<br />

request-ids of the requests that are granted,<br />

inclusively ORed into the status word. The PSI<br />

system is described in Chapter 6.<br />

3 .ENQMA<br />

Modifies an existing request made by your job. If<br />

the modification you specify in this request lS<br />

identical to the request you made earlier, no<br />

action is taken and the skip return is taken from<br />

the call. If you do not have a request in any<br />

queue, the error return is taken and the monitor<br />

returns error code 24 (ENQNE%) in the ac. If you<br />

specify more than one request with this function<br />

code and the error return is taken, you must issue<br />

the ENQC. monitor call to determine which (if<br />

any) modification request was granted. The error<br />

code that the monitor returns in the ac reflects<br />

only the last error that occurred as the-result of<br />

this call.<br />

You can modify a request from exclusive ownership<br />

to shared ownership, but you will receive an error<br />

code if you attempt to modify a request from<br />

shared to exclusive ownership if other jobs are<br />

also sharing the resource. To modify a request<br />

from shared to exclusive ownership when other jobs<br />

are sharing the resource, you must first DEQ. the<br />

request. Then, enqueue it again as an exclusive<br />

ownership request.<br />

SKIP RETURN<br />

All requests in the call are granted, and the resources are locked for<br />

your program.<br />

22-116

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!