Home
Channel exit considerations
Note that pipelining can cause some exit programs to fail, because:
- Exits might not be called serially.
- Exits might be called alternately from different threads.
Check the design of your exit programs before you use pipelining:
- Exits must be reentrant at all stages of their execution.
- When you use MQI calls, remember that MQI handles are thread-specific.
Consider a message exit that opens a queue and uses its handle for MQPUT calls on all subsequent invocations of the exit. This fails in pipelining mode because the exit is called from different threads. To avoid this failure, keep a queue handle for each thread and check the thread identifier each time the exit is invoked.
Parent topic:
Multiple thread support — pipelining
ic13270_
Home