GDDM V3R2 Base Application Programming Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
The coordination exit GDDM V3R2 Base Application Programming Reference SC33-0868-02 |
|
A coordination exit can be defined by specifying the coordination exit address in the array parameter of the WSCRT call; for a description of this, see "The GDDM calls" in topic 3.0. Function: By providing a coordination exit when creating an operator window, a task manager allows the use of that window by independent applications running their own instances of GDDM.
Whether a GDDM instance is being used by a task manager, or by a single application, the basics of a windowing program are the same:
When you first create a number of overlapping operator windows in an application, the viewing order depends on the order that you create the operator windows in. The operator window that you create first is at the bottom of the viewing order, and the operator window that you create last is at the top. On the display screen, each operator window appears in front of the operator windows that are below it in the viewing order. The topmost window is the active operator window. In a single application not running under a task manager, the current operator window is always the candidate operator window; which is the operator window with which the next virtual device to be opened will be associated. When you have several applications running concurrently under a task manager, only one of those applications is actually executing, while the others are waiting because they have unsatisfied reads outstanding. Each of the applications can have a current operator window. But no matter how many devices or applications there may be, only that operator window made current by the most recently executed WSCRT, WSSEL, or WSIO call is the candidate operator window; which is the operator window with which the next virtual device to be opened will be associated. The way that GDDM makes it possible for several application programs to share the screen is by allowing the task manager to intervene in the execution of the program's input/output calls. When each operator window is created, the task manager specifies (in the first array element of the last parameter of the WSCRT call) the address of a coordination exit routine. This runs in the application program subtask, and is invoked by GDDM whenever the application calls a function that requires input/output for the terminal - an ASREAD call, typically. The numbers in the figure represent the following events:
How to specify a coordination exit: A coordination exit is specified as part of the WSCRT call. For more information, see the description of the WSCRT call in the "The GDDM calls" in topic 3.0. Parameters: The parameters for coordination exits are as follows:
R13 -> A 72-byte save area
R14 -> The return address
R15 -> The entry point of the exit
R1 -> The parameter address list, in standard
variable parm-list format:
ADDR1 -> AAB (Char(8))
ADDR2 -> UXBLOCK ((3) Fixed(31))
ADDR3 -> DIRECTN (Fixed(31))
Parameters AAB and UXBLOCK are described under "GDDM user-exit
conventions" in topic 22.3.2. Additional parameters are as follows:
|
Copyright IBM Corporation 1990, 2012 |