tibx_MVSConsole_SetConsumer
Function
C Declaration
tibx_MVSConsole_SetConsumer( void* pConsole, tibemsMsgConsumer tibemsMsgConsumer, char* tibems_MVS_BreakFunction); signed long int tibems_MVS_BreakFunction( void* pConsole );
COBOL Call
SET WS-PROCEDURE-PTR TO ENTRY 'tibems_MVS_BreakFunction' CALL "tibx_MVSConsole_SetConsumer" USING BY VALUE pConsole, BY VALUE tibemsMsgConsumer, BY VALUE pFunction, RETURNING tibems-status END-CALL.
Remarks
Programs in single-threaded environments (such as COBOL) need a way to interrupt blocking receive calls (such as tibemsMsgConsumer_Receive).
After registering this function in COBOL, a console stop or shut command causes the receive call to return with a status code TIBEMS_USER_INTR (54).
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.