tpsblktime — Set timeout configuration for ATMI library
#include <atmi.h>
int tpsblktime(int tout, long flags);
For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm
For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Configure timeout for any XATMI IPC calls. This affect the sending and receiving parts of the IPC. This functions allows to control timeout settings on per thread context basis. The tout is specified in seconds. Note that for SystemV poller, precision is configured with NDRX_SCANUNIT setting. For all other pollers (e.g. epoll, svapoll), precision is as provided by operating system for timed system calls (normally expected in milliseconds).
tout value must be non negative number. Value 0 cancels particular setting. When XATMI IPC is performed, the timeout value used is resolved in the following order:
Per process timeout configuration may be applied with tptoutset(3) Enduro/X call.
Valid flags
TPBLK_ALL apply timeout setting for any XATMI call, applied for current XATMI context associated with the current thread.
TPBLK_NEXT apply timeout setting for certain XATMI API calls (see list bellow). After the API call value is canceled. Note that these APIs cancels the setting, even if API call did fail (e.g. invalid arguments).
Following APIs processes the TPBLK_NEXT:
Note: APIs not listed above, does not process TPBLK_NEXT and does not cancel it.
On success, tpsblktime() return zero; on error, -1 is returned, with tperrno set to indicate the error.