<commit_before>TPSVRTHRDONE(3)
===============
:doctype: manpage


NAME
----
tpsvrthrdone - Template and default version for server dispatch thread de-init function


SYNOPSIS
--------
#include <atmi.h>

int tpsvrthrdone (void);

For XATMI server link with '-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'

DESCRIPTION
-----------
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

. if XATMI server is built by *builserver(8)* having flag *-t* set.

. Or XATMI server process is started by *_tmstartserver(3)* with extern variable 
*_tmbuilt_with_thread_option* is set to *1*. And function name is specified in 
*tmsvrargs_t* structure for the *p_tpsvrthrdone* field.

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.

In case if using C++ compiler, function must be defined without name mangling,<commit_msg>Fixes on doc<commit_after>TPSVRTHRDONE(3)
===============
:doctype: manpage


NAME
----
tpsvrthrdone - Template and default version for server dispatch thread de-init function


SYNOPSIS
--------
#include <atmi.h>

void tpsvrthrdone (void);

For XATMI server link with '-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'

DESCRIPTION
-----------
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

. if XATMI server is built by *builserver(8)* having flag *-t* set.

. Or XATMI server process is started by *_tmstartserver(3)* with extern variable 
*_tmbuilt_with_thread_option* is set to *1*. And function name is specified in 
*tmsvrargs_t* structure for the *p_tpsvrthrdone* field.

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.

In case if using C++ compiler, function must be defined without name mangling,
{'fraction_non_alphanumeric': 0.096579476861167, 'fraction_numerical': 0.004694835680751174, 'mean_word_length': 4.43351548269581, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5501958', 'n_tokens_mistral': 956, 'n_tokens_neox': 929, 'n_words': 389}