Table of Contents
#include <atmi.h>
int tpsvrthrdone (void);
For XATMI server link with -latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
This function is called upon XATMI server process shutting down. Function is invoked for XATMI servers which are configured to work in multi-threaded mode.
Normally at tpsvrthrdone() is used for threads to perform the de-initialization.
The default version of this function is provided by Enduro/X which is built in in the the -latmisrvinteg library. Default version of the function invokes tx_close().
The tpsvrthrdone() is activated only
In case if program is single threaded and default tpsrvdone(3) is used. Where default tpsrvinit() will invoke the tpsvrthrinit().
To start program as multi-threaded ndrxconfig.xml(5) in server section <mindispatchthreads> and <maxdispatchthreads> must be greater than 1.
This only applies to XATMI servers.
If application failed to initialize, the user shall return non 0 value. If succeed, then 0 must be returned.
Report bugs to support@mavimax.com
tpsvrdone(3) tpsvrinit(3) tpsvrthrinit(3) _tmstartserver(3) ndrxconfig.xml(5) buildserver(8)