Back to home page

Enduro/X

 
 

    


0001 TPGPRIO(3)
0002 ==========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tpgprio - Get priority used for last service call
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014 
0015 int tpgprio(void);
0016 
0017 For XATMI client link with '-latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm'
0018 
0019 For XATMI server link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0020 
0021 DESCRIPTION
0022 -----------
0023 Get service call priority used for last service call. Last call priority is 
0024 kept in Thread Local Storage and associated with ATMI context. If no call was
0025 made prior call this function, default value *50* is returned. For next call
0026 priority can be changed by *tpsprio(3)* or by *ndrxconfig.xml(5)* service settings.
0027 
0028 
0029 LIMITATIONS
0030 -----------
0031 Priority settings are used only for Posix queues, thus effective only for following pollers,
0032 for others values are managed, but they do not affect actual message priority.
0033 System which processes priority are:
0034 
0035 1. *epoll* for Linux OS.
0036 
0037 2. *kqueue* for FreeBSD OS.
0038 
0039 RETURN VALUE
0040 ------------
0041 Returns priority from the last call or default value *50* if no call was made
0042 in the context
0043 
0044 ERRORS
0045 ------
0046 *N/A*
0047 
0048 EXAMPLE
0049 -------
0050 See *atmitest/test085_prio/atmiclt85.c* for sample code.
0051     
0052 BUGS
0053 ----
0054 Report bugs to support@mavimax.com
0055 
0056 SEE ALSO
0057 --------
0058 *tpsprio(3)* *ndrxconfig.xml(5)*
0059 
0060 COPYING
0061 -------
0062 (C) Mavimax, Ltd
0063