Back to home page

Enduro/X

 
 

    


0001 TPGETLEV(3)
0002 ===========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tpgetlev - Get transaction level
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014 
0015 int tpgetlev (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 Function returns current status of global transaction. If transaction is started 
0024 by *tpbegin()* or called service is part of global transaction (invoked by 
0025 process in global TX and was not specified *TPNOTRAN*), then function 
0026 returns '1'. If process is not part of global transaction, then return value is *0*.
0027 
0028 RETURN VALUE
0029 ------------
0030 *0* - current thread is not part of global transaction. 
0031 *1* - current thread is part of global transaction.
0032 
0033 
0034 ERRORS
0035 ------
0036 Function does not return any errors.
0037 
0038 EXAMPLE
0039 -------
0040 See *atmitest/test021_xafull/atmisv21.c* for sample code.
0041 
0042 BUGS
0043 ----
0044 Report bugs to support@mavimax.com
0045 
0046 SEE ALSO
0047 --------
0048 *tpcommit(3)* *tgetlev(3)* *tpopen(3)* *tpsuspend(3)* *tpresume(3)*
0049 
0050 COPYING
0051 -------
0052 (C) Mavimax, Ltd
0053